Skip to contentSkip to conversation

workqueue: Comment correction in file header

PATCH Superseded Libin 2 participants 2 messages Aug 16, 2013 Workqueue

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Libin

author
#0 lore raw

PATCH 1/1 workqueue: Comment correction in file header

No functional change. There are two worker pools for each cpu in current implementation(one for normal work items and the other for high priority ones).

---
 kernel/workqueue.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
kernel/workqueue.c +3 -2
index e8ee7a4..904ec00 100644
@@ -16,8 +16,9 @@
  *
  * This is the generic async execution mechanism.  Work items as are
  * executed in process context.  The worker pool is shared and
- * automatically managed.  There is one worker pool for each CPU and
- * one extra for works which are better served by workers which are
+ * automatically managed.  There are two worker pools for each CPU(one
+ * for normal work items and the other for high priority ones) and
+ * two extra for works which are better served by workers which are
  * not bound to any specific CPU.
  *
  * Please read Documentation/workqueue.txt for details.
Signature · 1 line
1.8.2.1
maintainer
#1 lore raw

Hello, Libin.

Quoted 7 lines · Libin

* This is the generic async execution mechanism. Work items as are
* executed in process context. The worker pool is shared and
- * automatically managed. There is one worker pool for each CPU and
- * one extra for works which are better served by workers which are
+ * automatically managed. There are two worker pools for each CPU(one
+ * for normal work items and the other for high priority ones) and
+ * two extra for works which are better served by workers which are

For unbound workqueues, the number of backing pools is dynamic. Unbound workqueue can be assigned custom attributes using apply_workqueue_attrs() and workqueue will automatically create backing worker pools matching the attributes.

Can you please update this and the doc update patch accordingly?

Thanks.

Signature · 1 line
tejun