From nobody Tue Jun 16 04:51:19 2026 Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3D43224AF9 for ; Thu, 16 Apr 2026 09:04:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776330255; cv=none; b=FJYmxGJ0ycQjXkTQjnrQzpj/8iFktK6kFGYnCsXlgHC/G2JPi42yT6lz1Zl+PPNa9KDiR2FpmIaXSUU+gvIcD7dgPynXY7lvrgBJ/QxyjLlt58wIzcMZ/fneKeHVtL1OKU2xo3dfbs9ovvXh2VWdTrUYfgT3mTs5kBbNNgK4HiU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776330255; c=relaxed/simple; bh=gSxzOgI3/Gj+Mcupg4s109VVeN+aw9kWlZY+SGzHJMI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=rT5/IU3C+A5k/HZDqE0hXhmb1xE6+cMSBx9eKcZg491MO2v0/xTtu0o+45GvZ0c58LfZHAaU3ARtTJQ01jEEeFEbYVz1njsBLNNWQPuWO8L2oVXtUcSCEW8g6AaWNMgRV9KeqkzX7yLM+UgxJ6ZQkoRfYpP485L0x9YGgBXJWRk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=SYVDLoix; arc=none smtp.client-ip=209.85.216.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SYVDLoix" Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-35d965648a2so6681295a91.0 for ; Thu, 16 Apr 2026 02:04:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776330253; x=1776935053; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=DhwXiPSRBnnu86VDz7G9HFV11SFZq70kJnaAExVIuuE=; b=SYVDLoixdAOPuSQOZ1SjQqWLBkRJHcSHbfeGPELEtdBG1EqS48pPgQzZVJNDxfSRoo 69E59/fSfY0IGgg6h51P2zUkX5Xurk13YJkVKAbr1SMMFM6b1pil3Tsa0mRxXEQNKTj6 HgoW57G7fwW/hxSZe7DgVQYoai05ujMtr/PR0veM/olFmVz1aUkvApRD44MkN0uNVWBJ 7RThhNl1z/RteqICAOgftDfQpEBD8M5eSfQRsw8x5d11vlzZgiN6lgEZUvyXFe7KwEGx ioO4PZlTeZaVsZxkLp0o/GbHv9QWz+DGyUnUDzs+MevDiGikcq78U0vXu0wwiBFwUng6 K/yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776330253; x=1776935053; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=DhwXiPSRBnnu86VDz7G9HFV11SFZq70kJnaAExVIuuE=; b=jjyF5O6w3JigX0QZ0BRugOfaWSW9T3oGGSSVf5qiyI8e1vZvQgl0XTUF5AHCOmsynl aLIRPU47shO1jrOVo+BXH+9M1gWdUiC3170FUdElmm7xoE+ljHT0XPgTrtBsMDXJFr6t UIt13IJJyuBHQFWcB1hhKyEiOkeSuCGbn38CM3J3GFXIjHSCbXoaTSNhK7CgRS61o88T B/d1OdlvUBXgr9RDWvwcH8SX0s4uEnyhRf6UDpf/OXe8BhByKheiWVff9Okf9uo0Mn+J M4IvuHAcDJ5MTNkgXn2MjZTfjdnOW1DRkXpiKVkUHi0jtNe0HDqNwPEzbkTDysXAdThF NvgQ== X-Forwarded-Encrypted: i=1; AFNElJ/6RaHUZtrUEAZHj1wK1g9iMKDXGaEcwnjk0s/yY7zwl91HgX2ScPH80JsXpu8yv/Ol5/XngavCaUhWQsY=@vger.kernel.org X-Gm-Message-State: AOJu0Yy5aTQq/jDr3CRR9y9gUw3BwqiJqVx/wchmL54gwguLTSXuBgEK JNlUhE64w4kJGp+u/eblquO2h4cCb/ke1QFZvq3GT+Dg2sHNelMfiujN7LD87A== X-Gm-Gg: AeBDieuwT8fKftJUzOL7dVUxL407faw2WZWsawsqwvquhtH85ozVzC1w+B/J7kDpqMl TbYTihEe8GrcO77JTsyvB8aToL0K7BfAFeLaINWRiAuNit8g/UmaQeD3UYpjna5Jkz7d1YPhyzi dwQUX1ZMUVCwsHjUwVk3Cdd4Obcj19WMqG76AJllYhnXjSwHVkW5huWPFvovq8Q3WPJgeDRVyIV T31fg2zN/AcCHpKBUng6aC5cDEBUna8h+KXLG63awtEL9wtggOy0do7x8yfU1f3YEzU9DXVP+3X ZnN10fWRSrHZ2CT7vJd+k2PKTftRgPZUjj+Rw/VIkLUVgypJBiRfyajZu6AfnJzlHv3YWzieVFO aKH1Oghkm58Su/bBIhjbdDWzlZgcVqzj5jjhVoICHexMgDQyxQgOuPhd4bgisEefVpgyTmhnBEJ xx3VYyQrNFFCwJtFV4XNww+mn9rwDax6jB X-Received: by 2002:a17:902:cf0d:b0:2b0:5cb3:e4bc with SMTP id d9443c01a7336-2b2d59ae7cemr252702925ad.16.1776330253116; Thu, 16 Apr 2026 02:04:13 -0700 (PDT) Received: from xiao.mioffice.cn ([43.224.245.230]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b4782ac324sm63049455ad.65.2026.04.16.02.04.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Apr 2026 02:04:12 -0700 (PDT) From: Xiang Gao To: peterz@infradead.org, mingo@redhat.com, will@kernel.org, boqun@kernel.org Cc: longman@redhat.com, linux-kernel@vger.kernel.org, Xiang Gao Subject: [PATCH] locking: fix typos in comments Date: Thu, 16 Apr 2026 17:04:07 +0800 Message-Id: <20260416090407.930301-1-gxxa03070307@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Xiang Gao Fix the following typos in comments: mutex.c: "crital" -> "critical" (2 instances) mutex.c: "task_strcut" -> "task_struct" (2 instances) rwsem.c: "Otherwisee" -> "Otherwise" rwsem.c: "crital" -> "critical" (2 instances) rwsem.c: "task_strcut" -> "task_struct" Signed-off-by: Xiang Gao Acked-by: Waiman Long Reviewed-by: Dmitry Ilvokhin --- kernel/locking/mutex.c | 6 +++--- kernel/locking/rwsem.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/kernel/locking/mutex.c b/kernel/locking/mutex.c index 186b463fe326..658cebc0958d 100644 --- a/kernel/locking/mutex.c +++ b/kernel/locking/mutex.c @@ -380,8 +380,8 @@ bool mutex_spin_on_owner(struct mutex *lock, struct tas= k_struct *owner, * Ensure we emit the owner->on_cpu, dereference _after_ * 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 + * critical section in optimistic spinning code. Thus the + * task_struct structure won't go away during the spinning * period */ barrier(); @@ -420,7 +420,7 @@ static inline int mutex_can_spin_on_owner(struct mutex = *lock) =20 /* * We already disabled preemption which is equal to the RCU read-side - * crital section in optimistic spinning code. Thus the task_strcut + * critical section in optimistic spinning code. Thus the task_struct * structure won't go away during the spinning period. */ owner =3D __mutex_owner(lock); diff --git a/kernel/locking/rwsem.c b/kernel/locking/rwsem.c index bf647097369c..016d69053ce4 100644 --- a/kernel/locking/rwsem.c +++ b/kernel/locking/rwsem.c @@ -638,7 +638,7 @@ static inline bool rwsem_try_write_lock(struct rw_semap= hore *sem, if (has_handoff) { /* * Honor handoff bit and yield only when the first - * waiter is the one that set it. Otherwisee, we + * waiter is the one that set it. Otherwise, we * still try to acquire the rwsem. */ if (first->handoff_set && (waiter !=3D first)) @@ -737,8 +737,8 @@ static inline bool rwsem_can_spin_on_owner(struct rw_se= maphore *sem) } =20 /* - * Disable preemption is equal to the RCU read-side crital section, - * thus the task_strcut structure won't go away. + * Disable preemption is equal to the RCU read-side critical section, + * thus the task_struct structure won't go away. */ owner =3D rwsem_owner_flags(sem, &flags); /* @@ -796,7 +796,7 @@ rwsem_spin_on_owner(struct rw_semaphore *sem) * checking sem->owner still matches owner, if that fails, * owner might point to free()d memory, if it still matches, * our spinning context already disabled preemption which is - * equal to RCU read-side crital section ensures the memory + * equal to RCU read-side critical section ensures the memory * stays valid. */ barrier(); --=20 2.34.1