From patchwork Tue May 9 02:24:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Honghui X-Patchwork-Id: 91351 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2573314vqo; Mon, 8 May 2023 19:32:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4KJIZBmIymIjr8pxvVqsfcAm/XDzT1rg6aCg46ccQI34kJvQ4ZWXd3uLOqRwaTZQ8tdtrn X-Received: by 2002:a17:903:1309:b0:1ac:750e:33d5 with SMTP id iy9-20020a170903130900b001ac750e33d5mr5607520plb.15.1683599524370; Mon, 08 May 2023 19:32:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683599524; cv=none; d=google.com; s=arc-20160816; b=E97MsFg1CZOLw+ahw7yYx+NPtju7v+eXyOM5N59TYnOoeFe5wUk1hWlu1QHdvu93LB 45XGnKa9h62RcDxZDV9Tyx0Lm2EaY1XN7Cd4NTLH17RgUedYG3BRrD9N5GMXSjnRMSz/ bZ/B3qJqhwPTH7CqrSCdMwzw/uqn5NOZB1eTTLOg11YLtYIxJEyCJl8f5g9C0Y3PHIgF HtZeqtgRbINHQAheBimpLW0UlnNgViViwVHKSgaomeowB3F7esrCIXZga6vRjgPO9uIL 8AmIvrk/oT3e5aRzNM71EKsk8zOFj7qr/yr6M62BgsnKE5EgbdDoTirsWDAgjLYfZB7g NwAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-disposition:mime-version :message-id:subject:to:from:date; bh=uc5Q/9q3OGCZTswoVDv0XnNkLYPAGl3l9VzBe2x0p1s=; b=zz4EKhTomxJ6GjFgffJXDyWwfm6Ky9BdZnHPI2SLQa368QBkOX69BfkDSfB9jA2uRX cvOMVf6tLGKC5b8EjgVhByfCk9lqkYB3cXHKH1Uesni9qbyzZkPn+/H299Ma7X656I4Z D6CAi1o5/wKPeqxC3gQH4AyLlddoAb04cEHwqzi1xlavwnx57Ul3Uu40XuLtlnhI94Wk VxG8QtzavLYxu4GEjHSDhhdf90pygi4xxdQz1pWARC1lXErlWeBUiqaYEPJmjNPCeexO mDm+m22uMjFzsDSpDPbkhPRvLbp6H6qQ+riC37hrQdPhXG8c4om1ESR1l8acIjir6hNp qfiw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jh2-20020a170903328200b001aae90dbcc5si378900plb.459.2023.05.08.19.31.52; Mon, 08 May 2023 19:32:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234331AbjEICZB (ORCPT + 99 others); Mon, 8 May 2023 22:25:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234328AbjEICY6 (ORCPT ); Mon, 8 May 2023 22:24:58 -0400 Received: from smtpbg156.qq.com (smtpbg156.qq.com [15.184.82.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BFED4239 for ; Mon, 8 May 2023 19:24:48 -0700 (PDT) X-QQ-mid: bizesmtpipv601t1683599070twsm Received: from localhost ( [255.228.96.1]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 09 May 2023 10:24:28 +0800 (CST) X-QQ-SSF: 0140000000000090C000000A0000000 X-QQ-FEAT: ao4JQgu0M38lHU/H/3o1aXxUjmoBJEkmkRCKEFE813Pkr5Yl6eV4sNXnsgGGx 6A6ntSioZDI9nX/W49HgFAOnlaYEeBdw6d75ktUJc+ucDZPChbx8+MNyCVPZMJS96SGARMX mnUMbagrjnX1J/XliPGwMJFPGDw1Xb08trmGyCSPXksj2Nb9iop5DcF0le6MnQ1DJV80KYa AfvHyPI9MwmOlvezSgGykfwMRb54AiP72RgHiH90VIb/qhZQs3W9DhbDEbcNAKJqi2sOPJj vR2wBKmNB4UUL8+SFrw+THPsDWawTbP9w8t4ZqEPCW0qN7a/znoTMEUbX3Um0q1f+3i+WUx zNbPPNMnoebn39xahZI7MThbO8eOw== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 11852908852472917791 Date: Tue, 9 May 2023 10:24:32 +0800 From: Wang Honghui To: Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , linux-kernel@vger.kernel.org Subject: [PATCH V2] locking: Fix a typo of comment Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpipv:ucas.com.cn:qybglogicsvrgz:qybglogicsvrgz5a-2 X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,RCVD_ILLEGAL_IP, RCVD_IN_DNSWL_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765382055146327652?= X-GMAIL-MSGID: =?utf-8?q?1765382055146327652?= As title Signed-off-by: Wang Honghui --- kernel/locking/mutex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/locking/mutex.c b/kernel/locking/mutex.c index d973fe6041bf..fe7335fb63d4 100644 --- a/kernel/locking/mutex.c +++ b/kernel/locking/mutex.c @@ -362,7 +362,7 @@ bool mutex_spin_on_owner(struct mutex *lock, struct task_struct *owner, * checking lock->owner still matches owner. And we already * disabled preemption which is equal to the RCU read-side * crital section in optimistic spinning code. Thus the - * task_strcut structure won't go away during the spinning + * task_struct structure won't go away during the spinning * period */ barrier(); @@ -401,7 +401,7 @@ static inline int mutex_can_spin_on_owner(struct mutex *lock) /* * We already disabled preemption which is equal to the RCU read-side - * crital section in optimistic spinning code. Thus the task_strcut + * crital section in optimistic spinning code. Thus the task_struct * structure won't go away during the spinning period. */ owner = __mutex_owner(lock);