Skip to content

Commit bd9e732

Browse files
WangJinchaohtejun
authored andcommitted
workqueue: doc: Fix function and sysfs path errors
alloc_ordered_queue -> alloc_ordered_workqueue /sys/devices/virtual/WQ_NAME/ -> /sys/devices/virtual/workqueue/WQ_NAME/ Signed-off-by: WangJinchao <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 6434455 commit bd9e732

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Documentation/core-api/workqueue.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ unbound worker-pools and only one work item could be active at any given
244244
time thus achieving the same ordering property as ST wq.
245245

246246
In the current implementation the above configuration only guarantees
247-
ST behavior within a given NUMA node. Instead ``alloc_ordered_queue()`` should
247+
ST behavior within a given NUMA node. Instead ``alloc_ordered_workqueue()`` should
248248
be used to achieve system-wide ST behavior.
249249

250250

@@ -390,7 +390,7 @@ The default affinity scope can be changed with the module parameter
390390
scope can be changed using ``apply_workqueue_attrs()``.
391391

392392
If ``WQ_SYSFS`` is set, the workqueue will have the following affinity scope
393-
related interface files under its ``/sys/devices/virtual/WQ_NAME/``
393+
related interface files under its ``/sys/devices/virtual/workqueue/WQ_NAME/``
394394
directory.
395395

396396
``affinity_scope``

Documentation/translations/zh_CN/core-api/workqueue.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ workqueue将自动创建与属性相匹配的后备工作者池。调节并发
202202
同的排序属性。
203203

204204
在目前的实现中,上述配置只保证了特定NUMA节点内的ST行为。相反,
205-
``alloc_ordered_queue()`` 应该被用来实现全系统的ST行为。
205+
``alloc_ordered_workqueue()`` 应该被用来实现全系统的ST行为。
206206

207207

208208
执行场景示例

0 commit comments

Comments
 (0)