Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5177222rwr; Mon, 8 May 2023 20:00:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ALWEdCOq5R25XrY7r09eXXM9/lzL2Vlu3frCFX4HJhM0QlbDueq9x3e7xVTEZw3vTj3dD X-Received: by 2002:a05:6a00:b8a:b0:646:663a:9d60 with SMTP id g10-20020a056a000b8a00b00646663a9d60mr5655410pfj.10.1683601214833; Mon, 08 May 2023 20:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683601214; cv=none; d=google.com; s=arc-20160816; b=uuuxPv1enLTMEtdyflPiO1pnoeYczYZRp6uCX+OSZP11AfajrZrdzqIHw93OL0kglW gDxrQYaGvzZ4lF5cFcAtyy98Nwx00P7MMxErTZ2SU6aBQak/e2MGeVzkXFHAb0dNSNKk T1rfNfF7L0xC5bmhss+B6WF84I0UdNhM6w0lQBPjduLmrZtK2vtQWD/fD/7PTdizsqX0 c9S+CUh7oHB97F8ZuUGUYhQ20ia/tjLBBqaEOI8u8lEtJ4bw7cj1L0+QK+hrKvp2WgIi WvUeY11o7dY1ZqpsRgqQJAZMUC4+DDYWDm3re4G4LSV/E2NVmNcJmz+VJFboL0wpjMuO uRGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=YNI/F7qyrCLspgi+tP41OwTJ6KrpGQKLIcl5Qot8Wck=; b=Vqhx1HXPZi0IxTyhhG6UO2zmEyXnX+ivBedUJeBBN1lLIGQS4liImIgsnHGMq6DtuD ciXtsmbQqie1mxdoflIecUJ3CvDdBSGNrr3cDbNBOWNi5oAZdYF8EOQOpMrn2g1VSX4h 2Fpqotkat2JZMXFHUWuqSHDmtmtSQx0pPFTwHFxfhSntNm7k2woKC687Vxr6ejbukJBg eGMGF+kiJk++Gc+RNnXrWlHM9GmNd1cN/bbUA7arwK1NxpkQ/eZBH/3i/6nLU8p5iraD NXvnjbx7d9VcqLOZcw8iWxpUBV1eIcKDwVSqMhCggce6sKLzcBglkocyKSwwJXg1d3fo n0yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=kzTcjm5V; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k17-20020a637b51000000b00513162c223bsi460841pgn.298.2023.05.08.20.00.03; Mon, 08 May 2023 20:00:14 -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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=kzTcjm5V; 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 S232511AbjEICcs (ORCPT + 99 others); Mon, 8 May 2023 22:32:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231863AbjEICcq (ORCPT ); Mon, 8 May 2023 22:32:46 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17B1F10CF for ; Mon, 8 May 2023 19:32:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Cc:Content-ID:Content-Description; bh=YNI/F7qyrCLspgi+tP41OwTJ6KrpGQKLIcl5Qot8Wck=; b=kzTcjm5Vrf0x9vkMuJZ+8Ex8Uz SyVNyRD2pyGfET+Ko5vi28OkVY2+X4TjCoV4eDEFPaVMP/OT31Nhy92iumqjmI+UGoiPw/35A3yYb voLqFJujXkp0OT+ZvpZjIP+Nu45ntbN8uyKowE/2z4j6E6kOSvbtZBk1uHYLb6pYw5EsOv+ElsklM 6ACUdDnEtyqA0BEVIlWNSxYDKpnN1rHbvDhcoQQSi8N4sLIFpkIR2sgCxWAKkwnY/JWvQJqyPeI+9 YXUkZ+fHMTJbWNW/EL5+EKe3zNQ8QIjwrRxgyki96y1gEuhEDNVozrJKcq6Ar0M9Hn+jiOw7QMX6n gUtafUBQ==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1pwD9Y-0027kk-2S; Tue, 09 May 2023 02:32:36 +0000 Message-ID: <628d3801-0a9e-c25b-c509-6db98a8afc14@infradead.org> Date: Mon, 8 May 2023 19:32:34 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH V2] locking: Fix a typo of comment Content-Language: en-US To: Wang Honghui , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , linux-kernel@vger.kernel.org References: From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 On 5/8/23 19:24, Wang Honghui wrote: > > 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 critical > - * task_strcut structure won't go away during the spinning > + * task_struct structure won't go away during the spinning > * period 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 critical > * structure won't go away during the spinning period. > */ > owner = __mutex_owner(lock); -- ~Randy