]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit944852fa6f9bd8fb9249fe7cb4b5aabacc3aa25c
tree5e7930d002412222645eca18e77343969262f75c
parent0d6307f0ff0e2b8c4dd21c0e87811f2d16d3c4ce
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