workqueue: warn if memory reclaim tries to flush !WQ_MEM_RECLAIM workqueue
authorTejun Heo <tj@kernel.org>
Mon, 7 Dec 2015 15:58:57 +0000 (10:58 -0500)
committerTejun Heo <tj@kernel.org>
Tue, 8 Dec 2015 16:29:36 +0000 (11:29 -0500)
commitfca839c00a12d682cb59b3b620d109a1d850b262
tree5e7930d002412222645eca18e77343969262f75c
parent527e9316f8ec44bd53d90fb9f611fa7ffff52bb9
workqueue: warn if memory reclaim tries to flush !WQ_MEM_RECLAIM workqueue

Task or work item involved in memory reclaim trying to flush a
non-WQ_MEM_RECLAIM workqueue or one of its work items can lead to
deadlock.  Trigger WARN_ONCE() if such conditions are detected.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
kernel/workqueue.c