From patchwork Mon May 8 09:32:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Honghui X-Patchwork-Id: 91036 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2026059vqo; Mon, 8 May 2023 02:41:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4BlFJtk61C7Of0pq5e046tz+dqAgVAvEFXYyh7U3oM+PMhuHAkUzyHGf3pnJQB3aUCwurd X-Received: by 2002:a17:90b:3904:b0:247:8029:fb30 with SMTP id ob4-20020a17090b390400b002478029fb30mr11044185pjb.42.1683538862794; Mon, 08 May 2023 02:41:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683538862; cv=none; d=google.com; s=arc-20160816; b=eruCUu9vKpZ01fG/0DoD8avIDDFtEXyaZtd1Vyp4DIRsE57Y58fydl+9q7WWNKMUoB H7eb/KgioyO8cw9tHNa2g0RJQF3EhTNavOrHe1N9k4lYD3IQMf3xZg4G9K5EVWDM1dY/ EAABuYK9avZwDcJ72ek/m2umeHNWlq0BBNgoeR+xAuhbepM1crdFOm2DpomONpTwEv32 jtPKalTec7ekemLHsI+yfhvIAY3jVS2qwU8Rw7Gw9ZACw+Ju1Bw/ijJU7xNkI4NQ1VSs Kvbz6v8cDi7Ut3jk8e4W3CM70MepYfjO9EnZBkylcaklsDPVBV42cqdx7FLXFDMk0uLT kvkQ== 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=emTE9qiFtw26mzAXpbzymyx7pyRpoe3VDe/IvFYcu8x9WCplxNmHne9urGUZ5w+Bay wYZslMtdBaKsUx9PFkL6/Mx3a84zJSblZaiTYoAIHwbpZ2cAmFMmfmg+JBCQrmBfwXin SFHZYapizb2rKRk11xBKBxNTGxUT0ToETHJx5HKUuw/i45v3QH64sN1erGft+wf8Ufbc r+OMtM0F9COmmEt6K8lgIrrH+VC+A60CG4Hh2PybgZzVzYhHkRveFERXbnJ96r227VK8 PqcrZE2JFQ/CsgQ6IGDxqNTCGnnE6R1Gn3X7zWUOrKhgX6NwzQSvBMap2l5vbXY1G8Ka FvOA== 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 x65-20020a17090a6c4700b0024e0f3308a0si12874591pjj.32.2023.05.08.02.40.50; Mon, 08 May 2023 02:41:02 -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 S233735AbjEHJcn (ORCPT + 99 others); Mon, 8 May 2023 05:32:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbjEHJca (ORCPT ); Mon, 8 May 2023 05:32:30 -0400 Received: from smtpbg151.qq.com (smtpbg151.qq.com [18.169.211.239]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C363F4233 for ; Mon, 8 May 2023 02:32:27 -0700 (PDT) X-QQ-mid: bizesmtpipv603t1683538337t7l6 Received: from localhost ( [255.223.254.8]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 08 May 2023 17:32:15 +0800 (CST) X-QQ-SSF: 0140000000000090C000000A0000000 X-QQ-FEAT: OICyp1OkQRLg/iYF4KHx+yoY9T6DgH1PhwP3ZovWiwKhjocyNsBqWHLHrLnVY 3UDVGGTyebYDbYZ8Ke4uEHQKJaox0lAKUcxN5WtPJACtbSiLosTwgyk3TL4ZLt9sL2oRhtV Jb+66gD11b9Qv7tQ2zogvrrJsubip4gdm3RSsqGh92jQJVfsbDxxDTR0c1bSrgq3m4lKRhT us9pVchOVaqZ3x23mj0zr9l3BGCFeErUZt3eoTxljgdLT+wGcCA+hQht9AkIPbYT032ew1k 4wOjgUA97QjUqy96DHdetw6Adv+75khpQGDNrxvkGkcLJolUe/hH+ZvWwfjTDGQ03cVF/wX BpMSnCr1Srx9UsWbAg63p/owiLpUg== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 15136933522312511394 Date: Mon, 8 May 2023 17:32:14 +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: <06890F37BC202460+ZFjBnvTGQwXTFVu7@TP-P15V> 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,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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?1765318446540245674?= X-GMAIL-MSGID: =?utf-8?q?1765318446540245674?= 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);