summaryrefslogtreecommitdiffstats
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorLai Jiangshan2018-03-20 10:24:05 +0100
committerTejun Heo2018-03-20 21:01:36 +0100
commit5826cc8f5a6094ce6565a8e0008c9f07ebf724b1 (patch)
tree8993e04bd776e76087b178f93679019e9c95771e /kernel/workqueue.c
parentfs/aio: Use rcu_work instead of explicit rcu and work item (diff)
downloadkernel-qcow2-linux-5826cc8f5a6094ce6565a8e0008c9f07ebf724b1.tar.gz
kernel-qcow2-linux-5826cc8f5a6094ce6565a8e0008c9f07ebf724b1.tar.xz
kernel-qcow2-linux-5826cc8f5a6094ce6565a8e0008c9f07ebf724b1.zip
workqueue: fix the comments of nr_idle
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>
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r--kernel/workqueue.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 7df85fa9f651..eeebfa65b0ef 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -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 */