From: Libin Date: Wed, 21 Aug 2013 00:50:40 +0000 (+0800) Subject: workqueue: Fix manage_workers() RETURNS description X-Git-Tag: next-20130822~34^2^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2d498db9814c6f3a79b708c8867c7ffcf7b5e2fc;p=karo-tx-linux.git workqueue: Fix manage_workers() RETURNS description No functional change. The comment of function manage_workers() RETURNS description is obvious wrong, same as the CONTEXT. Fix it. Signed-off-by: Libin Signed-off-by: Tejun Heo --- diff --git a/kernel/workqueue.c b/kernel/workqueue.c index eebd9a66c044..10f655ec8de6 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -2034,8 +2034,11 @@ static bool maybe_destroy_workers(struct worker_pool *pool) * multiple times. Does GFP_KERNEL allocations. * * RETURNS: - * spin_lock_irq(pool->lock) which may be released and regrabbed - * multiple times. Does GFP_KERNEL allocations. + * %false if the pool don't need management and the caller can safely start + * processing works, %true indicates that the function released pool->lock + * and reacquired it to perform some management function and that the + * conditions that the caller verified while holding the lock before + * calling the function might no longer be true. */ static bool manage_workers(struct worker *worker) {