From patchwork Thu May 4 03:15: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: 89912 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp36195vqo; Wed, 3 May 2023 20:58:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5oEReRaTYIEMRgiGOki/5YDzBlLGJckwOJvLhCFEzZYmr1nMrc33OWji+V3DKG38u4sRVn X-Received: by 2002:a05:6a00:8c4:b0:643:59cd:6caa with SMTP id s4-20020a056a0008c400b0064359cd6caamr1119709pfu.7.1683172696999; Wed, 03 May 2023 20:58:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683172696; cv=none; d=google.com; s=arc-20160816; b=Kv5xyPQNc4/O4mHknpJHOPW/t6UvFnooowKvNmK0cmj+i0as3h2cS13Ng/Q/55r1Ge fTBSrVDD1v//PCOIopULN8EuhxHksJZZHoAR5jzGnZoGWpSHc1eFPbu6HJZO2CgkOAp0 SS0MOloGj/z+IvbY85TN9i4aUHccSwDo19pTJ8XI/8ZbfG9d+WOmsZv2IndXR3zJib4C OtJ5sI8d8xt2PoN0IwVEfdWYwUDYYVMmcVhlQrV92RrpweQseEjJtMedkphhNcSIZgTA a99UG8gZs3fqfm2VF4AltYyQvgb+DEvHVG/Jy3nrG1yJ69ZkQTeEEE1wncXAGmJ1mH1q QpAA== 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=qwgt5CFLoNl0bkkaSz6zvB2M0BVOutNuJAp2WqwLHz0=; b=vHW2y7Rf3X64Fen5j3yps1ej1PBef7aOeumtPo4rufrkXfvm7C5e6JXRGDEyEsGDwl 9tlzdSoq4dLcGAv9Ib9zYj4dnicrLh2Qy4wdS4MlgvO4/ZQzAIiaYdJPPGqkhETtPRJz p5n8ulTkI80S5D4lJUH5113vVMl1mApvAYOQja6bdyMOY6A8uYBAG2vmzar8ytBS1vnA 2wKQoAF1TTdPIVDZItjJqub/LRKoBVe2BG9Tk4j/YnSNedMw5tqloaYGDeZToY1n5Ft1 gMnknjuamVkXllY5MebJHZTR71YDxh6rEmorxxbUb1mBDRuhigFH9E3jU5u4I3+prf/z ALvA== 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 y129-20020a626487000000b0063b61b49a30si33431714pfb.253.2023.05.03.20.58.00; Wed, 03 May 2023 20:58:16 -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 S229514AbjEDDRw (ORCPT + 99 others); Wed, 3 May 2023 23:17:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229565AbjEDDRk (ORCPT ); Wed, 3 May 2023 23:17:40 -0400 Received: from smtpbgau1.qq.com (smtpbgau1.qq.com [54.206.16.166]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F39BB10D9 for ; Wed, 3 May 2023 20:17:37 -0700 (PDT) X-QQ-mid: bizesmtpipv601t1683170117tlj3 Received: from localhost ( [255.98.72.1]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 04 May 2023 11:15:15 +0800 (CST) X-QQ-SSF: 0140000000000090C000000A0000000 X-QQ-FEAT: U9wPccABgDghcOsVBxQLT/HrFuzkpGxzB5B5oUBHEAipXRA8u5jCGXjIo10R8 73/tMLPooeDpWpvlrau06sqODgNFMYCSsrlEDl+SLAtGCN4RcSLee8jKGV/7ZnanDtaegdO hcvqeRKQbR59V3QeD08EXvCpkdiIMWEo0Urx93fS6KaDoSc+qHRB8QmzOgXSp6iqZFM6gXQ OCRT8vEJJIKbww1EN2EmNmjvcFmYvhkltJK/yE0ULclaDvK4LQIvwgOK9g88WMBlwIwJWND nSP5+nqpVpMs561fdT37ctK/WXCMYGXYINymPeMOcCYer4RicHS160EL9DhMrfZPEvuIVho 8rGX9AwulYo9ZzE9tvarPZym/vsMQ== X-QQ-GoodBg: 2 X-BIZMAIL-ID: 13721817484134586107 Date: Thu, 4 May 2023 11:15:14 +0800 From: Wang Honghui To: Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , linux-kernel@vger.kernel.org Subject: [PATCH] task_strcut: Correct spelling mistakes in comments. Message-ID: <152717F136F81E85+ZFMjQo/4GpnuOIDs@TP-P15V> MIME-Version: 1.0 Content-Disposition: inline X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpipv:ucas.com.cn:qybglogicsvr:qybglogicsvr6 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?1764934493594719257?= X-GMAIL-MSGID: =?utf-8?q?1764934493594719257?= Correct spelling mistakes in comments. Signed-off-by: Wang Honghui --- kernel/locking/mutex.c | 4 ++-- kernel/locking/rwsem.c | 2 +- 2 files changed, 3 insertions(+), 3 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); diff --git a/kernel/locking/rwsem.c b/kernel/locking/rwsem.c index acb5a50309a1..f2085ce74c15 100644 --- a/kernel/locking/rwsem.c +++ b/kernel/locking/rwsem.c @@ -715,7 +715,7 @@ static inline bool rwsem_can_spin_on_owner(struct rw_semaphore *sem) /* * Disable preemption is equal to the RCU read-side crital section, - * thus the task_strcut structure won't go away. + * thus the task_struct structure won't go away. */ owner = rwsem_owner_flags(sem, &flags); /*