|
@@ -2507,10 +2507,6 @@ void drain_all_pages(struct zone *zone)
|
|
if (WARN_ON_ONCE(!mm_percpu_wq))
|
|
if (WARN_ON_ONCE(!mm_percpu_wq))
|
|
return;
|
|
return;
|
|
|
|
|
|
- /* Workqueues cannot recurse */
|
|
|
|
- if (current->flags & PF_WQ_WORKER)
|
|
|
|
- return;
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* Do not drain if one is already in progress unless it's specific to
|
|
* Do not drain if one is already in progress unless it's specific to
|
|
* a zone. Such callers are primarily CMA and memory hotplug and need
|
|
* a zone. Such callers are primarily CMA and memory hotplug and need
|