]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kthread_worker: reorganize to prepare for flush_kthread_work() reimplementation
authorTejun Heo <tj@kernel.org>
Thu, 19 Jul 2012 20:52:53 +0000 (13:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:40:01 +0000 (10:40 -0700)
commit164743c183e486910153252ab3429f4bbea994af
tree64b9139d2f869beaf469e785bb869fe4bf3000dc
parente116de8f0cba1231b545eb982d1f73be68dacd38
kthread_worker: reorganize to prepare for flush_kthread_work() reimplementation

commit 9a2e03d8ed518a61154f18d83d6466628e519f94 upstream.

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: Tejun Heo <tj@kernel.org>
Acked-by: Andy Walls <awalls@md.metrocast.net>
Cc: Colin Cross <ccross@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/kthread.c