From patchwork Thu Oct 12 07:17:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Wang Jinchao X-Patchwork-Id: 151796 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1041165vqb; Thu, 12 Oct 2023 00:18:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE/5Zszflm9pDrS+6TILpqIH4ChcDC1aL+c8jJn94CCci+coFcXvscFY7+WR9aoGbDm0Ezs X-Received: by 2002:a05:6870:f708:b0:1d5:1a99:537f with SMTP id ej8-20020a056870f70800b001d51a99537fmr24958387oab.2.1697095099330; Thu, 12 Oct 2023 00:18:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697095099; cv=none; d=google.com; s=arc-20160816; b=mn+mdi1ZY5i5X62vLjpdowe7fl4AWCKKoXAp5dDIhtT8ImRztz/Ba7snz02gauHz6b GAUnQ26Q5Aw8SnRoVh8xg9wv5JB257pRx9Vfm3Tq1SkMiqT96ZEBq5hutmInhCZDTlkv LNl0uQ+DIw1jdQU4+cqe+gVd3KFFxj5Iw7mv2mRgKJTP8uMI90DjZgj0ft0khnzGDu8k c25Qka5Dqv7W2cj0Uz/I0M7dkm/NNIjWsedDB48EyGhlUpMsRVcsIvYghOwYbX0M3S7T IvsiNVaEEGUpqdU5jfb1cmonSXoJkwz2SYGBO7ppn6sh5vI93/rJS5yXYcMn1GRyWMxj lWjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-disposition :mime-version:message-id:subject:cc:to:from:date; bh=C+uVnv0AWHpYQmVK/uYG/YRi2emOEtjpZfaXW69GzwI=; fh=uc9toMcjH72781W7OF/fR5ryePM0UI6iuzW++EqIdtU=; b=G99pI8mrkPigPwRUrAj0GR5KB0YdUjKarwvIC1zbL9VRdIAjv8SZQhYOucLcGwUNBW e6gpVpyOaDi79tBU2VEDW3rWL61KLpvW7uAsoRSxC4aMnsNvhPS49pNs9fYzYVGCLTF+ 2/2oymXa4cAs7WB1x6TnXd6pY4nWwpwerNgcA/B04A9ic80A32xB26z7uSxer7+QLG5k yTychhPwQR7+Rzo36NK2QUrkcZFdbCjL/3yjeXc4tfl9ccua6zSbmXm9B70kMQeCT+6v FJhetPpPF17FzoUPwfMlDEPugDDwaHxkFwm0TjG29GiPAF7IO13w9Ot7q638aeT53kEK 1MGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id u63-20020a638542000000b0056fc3ceaba4si1640172pgd.432.2023.10.12.00.18.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 00:18:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 1B61F82265C1; Thu, 12 Oct 2023 00:18:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347092AbjJLHRw (ORCPT + 19 others); Thu, 12 Oct 2023 03:17:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343577AbjJLHRv (ORCPT ); Thu, 12 Oct 2023 03:17:51 -0400 Received: from wxsgout04.xfusion.com (wxsgout03.xfusion.com [36.139.52.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ECD7B8 for ; Thu, 12 Oct 2023 00:17:47 -0700 (PDT) Received: from wuxshcsitd00600.xfusion.com (unknown [10.32.133.213]) by wxsgout04.xfusion.com (SkyGuard) with ESMTPS id 4S5grq462nz9xgXl; Thu, 12 Oct 2023 15:15:23 +0800 (CST) Received: from localhost (10.82.147.3) by wuxshcsitd00600.xfusion.com (10.32.133.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Thu, 12 Oct 2023 15:17:38 +0800 Date: Thu, 12 Oct 2023 15:17:38 +0800 From: WangJinchao To: Tejun Heo , Lai Jiangshan , Jonathan Corbet , , CC: Subject: [PATCH] workqueue: doc: Fix function and sysfs path errors Message-ID: <202310121517+0800-wangjinchao@xfusion.com> MIME-Version: 1.0 Content-Disposition: inline X-Originating-IP: [10.82.147.3] X-ClientProxiedBy: wuxshcsitd00600.xfusion.com (10.32.133.213) To wuxshcsitd00600.xfusion.com (10.32.133.213) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 12 Oct 2023 00:18:17 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779533190653446310 X-GMAIL-MSGID: 1779533190653446310 alloc_ordered_queue -> alloc_ordered_workqueue /sys/devices/virtual/WQ_NAME/ -> /sys/devices/virtual/workqueue/WQ_NAME/ Signed-off-by: WangJinchao --- Documentation/core-api/workqueue.rst | 4 ++-- Documentation/translations/zh_CN/core-api/workqueue.rst | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/core-api/workqueue.rst b/Documentation/core-api/workqueue.rst index 5d7b01aed1fe..0046af06531a 100644 --- a/Documentation/core-api/workqueue.rst +++ b/Documentation/core-api/workqueue.rst @@ -244,7 +244,7 @@ unbound worker-pools and only one work item could be active at any given time thus achieving the same ordering property as ST wq. In the current implementation the above configuration only guarantees -ST behavior within a given NUMA node. Instead ``alloc_ordered_queue()`` should +ST behavior within a given NUMA node. Instead ``alloc_ordered_workqueue()`` should be used to achieve system-wide ST behavior. @@ -390,7 +390,7 @@ The default affinity scope can be changed with the module parameter scope can be changed using ``apply_workqueue_attrs()``. If ``WQ_SYSFS`` is set, the workqueue will have the following affinity scope -related interface files under its ``/sys/devices/virtual/WQ_NAME/`` +related interface files under its ``/sys/devices/virtual/workqueue/WQ_NAME/`` directory. ``affinity_scope`` diff --git a/Documentation/translations/zh_CN/core-api/workqueue.rst b/Documentation/translations/zh_CN/core-api/workqueue.rst index 6c1b5ec31d75..7fac6f75d078 100644 --- a/Documentation/translations/zh_CN/core-api/workqueue.rst +++ b/Documentation/translations/zh_CN/core-api/workqueue.rst @@ -202,7 +202,7 @@ workqueue将自动创建与属性相匹配的后备工作者池。调节并发 同的排序属性。 在目前的实现中,上述配置只保证了特定NUMA节点内的ST行为。相反, -``alloc_ordered_queue()`` 应该被用来实现全系统的ST行为。 +``alloc_ordered_workqueue()`` 应该被用来实现全系统的ST行为。 执行场景示例