No functional change. The comment of function manage_workers() RETURNS description is obvious wrong, same as the CONTEXT. Fix it.
Showing the changes to kernel/workqueue.c (1 of 1 file). Show all
Unified · Split
| @@ -2034,8 +2034,11 @@ static bool maybe_destroy_workers(struct worker_pool *pool) · 2033 unmodified lines | ||
| 2034 | 2034 | * multiple times. Does GFP_KERNEL allocations. |
| 2035 | 2035 | * |
| 2036 | 2036 | * RETURNS: |
| 2037 | − * spin_lock_irq(pool->lock) which may be released and regrabbed | |
| 2038 | − * multiple times. Does GFP_KERNEL allocations. | |
| 2037 | + * %false if the pool don't need management and the caller can safely start | |
| 2038 | + * processing works, %true indicates that the function released pool->lock | |
| 2039 | + * and reacquired it to perform some management function and that the | |
| 2040 | + * conditions that the caller verified while holding the lock before | |
| 2041 | + * calling the function might no longer be true. | |
| 2039 | 2042 | */ |
| 2040 | 2043 | static bool manage_workers(struct worker *worker) |
| 2041 | 2044 | { |