]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
workqueue: fix the comments of nr_idle
authorLai Jiangshan <jiangshanlai@gmail.com>
Tue, 20 Mar 2018 09:24:05 +0000 (17:24 +0800)
committerTejun Heo <tj@kernel.org>
Tue, 20 Mar 2018 20:01:36 +0000 (13:01 -0700)
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>
kernel/workqueue.c

index 7df85fa9f651054530477c3569fa8823d36e125e..eeebfa65b0eff054495e732650005d260af8bd04 100644 (file)
@@ -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 */