History

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.

Libin committed 13 years ago

Commit 2d498db1 parent b11895c1 file · +5 −2Browse files

Showing the changes to kernel/workqueue.c (1 of 1 file). Show all

Unified · Split

kernel/workqueue.c+5−2
@@ -2034,8 +2034,11 @@ static bool maybe_destroy_workers(struct worker_pool *pool) · 2033 unmodified lines
20342034 * multiple times. Does GFP_KERNEL allocations.
20352035 *
20362036 * 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.
20392042 */
20402043 static bool manage_workers(struct worker *worker)
20412044 {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t