Skip to content
Commit 8d03ecfe authored by Tejun Heo's avatar Tejun Heo
Browse files

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: default avatarTejun Heo <tj@kernel.org>
parent 1dd63814
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment