kthread: implement kthread_worker
authorTejun Heo <tj@kernel.org>
Tue, 29 Jun 2010 08:07:09 +0000 (10:07 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 29 Jun 2010 08:07:09 +0000 (10:07 +0200)
commitb56c0d8937e665a27d90517ee7a746d0aa05af46
treefefff33fe3bbebfc8d60ba581e5343dc6cb56a70
parent53c5f5ba42c194cb13dd3083ed425f2c5b1ec439
kthread: implement kthread_worker

Implement simple work processor for kthread.  This is to ease using
kthread.  Single thread workqueue used to be used for things like this
but workqueue won't guarantee fixed kthread association anymore to
enable worker sharing.

This can be used in cases where specific kthread association is
necessary, for example, when it should have RT priority or be assigned
to certain cgroup.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
include/linux/kthread.h
kernel/kthread.c