]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit55d23b277defc76e16063300e8180da9614d8d5c
treefefff33fe3bbebfc8d60ba581e5343dc6cb56a70
parent2bcf7272acca5de7e3ea4468c81f7dd23317e6dd
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