Skip to content

Commit

Permalink
workqueue: fix the comments of nr_idle
Browse files Browse the repository at this point in the history
Since the worker rebinding behavior was refactored, there is
no idle worker off the idle_list now. The comment is outdated
and can be just removed.

It also groups nr_workers and nr_idle together.

Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Lai Jiangshan authored and Tejun Heo committed Mar 20, 2018
1 parent f729863 commit 5826cc8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,9 @@ struct worker_pool {
unsigned long watchdog_ts; /* L: watchdog timestamp */

struct list_head worklist; /* L: list of pending works */
int nr_workers; /* L: total number of workers */

/* nr_idle includes the ones off idle_list for rebinding */
int nr_idle; /* L: currently idle ones */
int nr_workers; /* L: total number of workers */
int nr_idle; /* L: currently idle workers */

struct list_head idle_list; /* X: list of idle workers */
struct timer_list idle_timer; /* L: worker idle timeout */
Expand Down

0 comments on commit 5826cc8

Please sign in to comment.