Messages in this thread |  | | Date | Fri, 4 Dec 2015 13:51:11 +0100 | | From | Peter Zijlstra <> | | Subject | Re: [PATCH] workqueue: warn if memory reclaim tries to flush !WQ_MEM_RECLAIM workqueue |
| |
On Thu, Dec 03, 2015 at 05:04:06PM -0500, Tejun Heo wrote: > > One solution is to always fail maybe_create_worker() when PF_MEMALLOC is > > set, thus always hitting the mayday button. > > I'm not following. When PF_MEMALLOC is set where?
It seems I made a false assumption. I was thinking the worker creation was done from queue/flush context, but its done by other workers, at a time when PF_MEMALLOC cannot be set.
In any case, no objections to the proposed patch.
|  |