Skip to content
Commit 9a2e03d8 authored by Tejun Heo's avatar Tejun Heo
Browse files

kthread_worker: reorganize to prepare for flush_kthread_work() reimplementation



Make the following two non-functional changes.

* Separate out insert_kthread_work() from queue_kthread_work().

* Relocate struct kthread_flush_work and kthread_flush_work_fn()
  definitions above flush_kthread_work().

v2: Added lockdep_assert_held() in insert_kthread_work() as suggested
    by Andy Walls.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Acked-by: default avatarAndy Walls <awalls@md.metrocast.net>
parent 8db25e78
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment