workqueue: note the nested NOT_RUNNING test in worker_clr_flags() isn't a noop
authorTejun Heo <tj@kernel.org>
Tue, 11 Jan 2011 14:58:49 +0000 (15:58 +0100)
committerTejun Heo <tj@kernel.org>
Tue, 11 Jan 2011 15:03:14 +0000 (16:03 +0100)
commit42c025f3de9042d9c9abd9a6f6205d1a0f4bcadf
tree67c618a227059548e2be915560aa113f590e6d5e
parente159489baa717dbae70f9903770a6a4990865887
workqueue: note the nested NOT_RUNNING test in worker_clr_flags() isn't a noop

The nested NOT_RUNNING test in worker_clr_flags() is slightly
misleading in that if NOT_RUNNING were a single flag the nested test
would be always %true and thus noop.  Add a comment noting that the
test isn't a noop.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Hillf Danton <dhillf@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
kernel/workqueue.c