]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: reimplement is_chained_work() using current_wq_worker()
authorTejun Heo <tj@kernel.org>
Thu, 14 Feb 2013 03:29:10 +0000 (19:29 -0800)
committerTejun Heo <tj@kernel.org>
Thu, 14 Feb 2013 03:29:10 +0000 (19:29 -0800)
commit0c27fd6b58e61cf0cc20c5f89537778fd5a7e812
tree1178cacfdd36358665f9a4c6325329346b221dd0
parent0d8c4f56318a2b216bd525e703d552465b52b0ea
workqueue: reimplement is_chained_work() using current_wq_worker()

is_chained_work() was added before current_wq_worker() and implemented
its own ham-fisted way of finding out whether %current is a workqueue
worker - it iterates through all possible workers.

Drop the custom implementation and reimplement using
current_wq_worker().

Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c