From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (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 EB4493ED114 for ; Tue, 28 Apr 2026 07:25:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777361108; cv=none; b=fioiqcDeADRIXFKUZT5yFZCpEQGnKkuRKwhj50XU07xzlNGOVm0t6O/ufkHSyA4hXkdF7/2vuP13kCekM36ZimdjoR3Ox8wp90RkPa3Hs+iDuQzkzAbbCFzynRnvjNZqqj038G0CB60CKsptNuTsvgUIlO97/sd1w3MY9Aksou4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777361108; c=relaxed/simple; bh=O01XH8PH7Qd3MMdXjEgJXTtOf8fl/1BmXGJXr4I4IZ8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=hWkd6V6/YBnmBKuGQlfPdYgflDxd5Nfa7FDpuhCvqS4ziF2+csQ7I3w5+aCMrEP7oj+HnsTjDcfMTjtrz1xH9WK4awAqYuobIlpjUg1zhacA4UB4cWgzGsSqEQMz35J4kZNGp/7Cryu0y7eyTM2IZV7FPb3d9TXXe1J5NF7rK+g= 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=KPrgz2rY; arc=none smtp.client-ip=209.85.210.175 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="KPrgz2rY" Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-82fb2d0c5d1so5508677b3a.0 for ; Tue, 28 Apr 2026 00:25:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777361106; x=1777965906; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=ffPK3HGlamwsJhIWk/SXFE+By7GLberSOHXTBlAKTH4=; b=KPrgz2rY94svGBtjG9Bu9iqlocdU3ICKkTusacRaDTc7rlTFBrumCpgVJmEn8/qUx2 SXbjPbpTZ5zHirp+i7oeQhGdcwfa93Dpgy1gNyta1BCUeBcPiXQ2eMZsSisJhzl0cxFn HvP793xCRoyrZ1/HK3I7U5YnXhII25zcT4xZrUqmO28X3gITb1BsXJnR5e4k6Bpmnk33 LM4pYS/rjrSgDb5fgVux1blleqnln/LTUiij8PuU3Fx5Fa7TDdI+B0dSZp8YqvzgPUUW mo7HlVWQ/U3glvU/x6YKb/Z+cX8YIsxKbUb1uG70kjUe3sXy026A4sCslDyVJEtPSwPZ hblg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777361106; x=1777965906; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ffPK3HGlamwsJhIWk/SXFE+By7GLberSOHXTBlAKTH4=; b=r0IsIgdq+8Je2/oXVPanrXat9lZ+eNzqjf3F0PQf2x6IxtRwK4+QLuUIB/3rebyoIY g2dou2wdM5aWZVSsyaICi+5dL/HKNbCpx2fTrMsamg037W9nsKx29bjtSaXQLn9c2tmC dkpKYM7EO0h69z0IH3IlfYBzzlervEQGXBGb9u8NqbTn2CUQ0ulPiFtoD2UA+WXB4uwz FqJc3/ct5i94zBBfuJDMIo4B7DC3cvQIxdYnZY1cMH94y2D2d+w+6BqjSqNhdo4QsrI5 ERlm5OZAhhaAfEJjYJWgQKaUbbtnWmYtEm20TgVCPwVQ0PyfIzaS8UaRLLo5N8vCtbV7 yzKA== X-Gm-Message-State: AOJu0Yy437U1nsRnGaxEpbFiqLqzk5ENHv9sITZH/SuBe1WacqniMQ0c 4XHGpOG/ow7zSp/q03GnNV8UJlRNz7upw559dMOthruxB6IedwjmxdYa X-Gm-Gg: AeBDieu0iA73v0V44OoDKmu11xbDhpskcoAsx92mOAKUJEJ8M4Tq7qdpmx4xs9mU62E NLJgefZo3vKkguDPti/RtHhzKm68+2nu0aqEgB1Yt+NMGgJH1MIKWoNCyeb/kBKbG+yo1pluDwb ufQSlxPxcVPU5IogwZ6bfhY+RmVbYWHkZgoj7e2vlHbZP/sIU0l7MoDN1Mn0MXzD+dwzs42e6kN NfhtYlsQvpZ6ktPJdkhBGKFwWZF+BfC/La2UxL4uyTurNNhxKZHTbPUtDiFh82Qzp3kabSTq9TP R4f5fbg0Ybg2dF1xpA8vtVxd9wuE4ABPkDjmvHcas3mAaox2BDBgKZ9/tGJgXeTnYCyO1/IRtdY tn2s4g9nk0sDVOhp9iLiXqehoU12KtX2su87z3XtdhDtzJNg4RO9IM0XJ6UYF4L9HrQok/SDIDC iuLTwc0LwL3PocN0v0/ihSfQ0wjV5pXKPX0AyAtnP9rvlvHmw= X-Received: by 2002:a05:6a20:1591:b0:3a2:ed4a:5d81 with SMTP id adf61e73a8af0-3a39c530e28mr2000291637.11.1777361106265; Tue, 28 Apr 2026 00:25:06 -0700 (PDT) Received: from yuwhisper-pc. ([49.213.140.88]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-834dae2249esm1714461b3a.21.2026.04.28.00.25.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Apr 2026 00:25:05 -0700 (PDT) From: Hsiu Che Yu Date: Tue, 28 Apr 2026 15:24:54 +0800 Subject: [PATCH] rust: block: fix comment referring to states by wrong labels Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260428-fix-docs-mq-req-v1-1-260079853836@gmail.com> X-B4-Tracking: v=1; b=H4sIAMVg8GkC/yXM3QpAQBCG4VvRHJva3YTcihywOxjlbwcpuXeLw 6e+771AyDMJFNEFng4WnqcAHUdg+3rqCNkFg1EmVYnJseUT3WwFxxU9rehMrVrSTZpkGsJr8RQ mX7GsfsveDGS3NwP3/QCzhM3TcwAAAA== X-Change-ID: 20260428-fix-docs-mq-req-d2a0fe1b6471 To: Andreas Hindborg , Boqun Feng , Miguel Ojeda , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Alice Ryhl , Trevor Gross , Danilo Krummrich , "Peter Zijlstra (Intel)" Cc: linux-block@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, Hsiu Che Yu X-Mailer: b4 0.15.2 The comment in `Request` describing the four ownership states referred to states 2 and 3 as "B" and "C", which are inconsistent with the numbering scheme used throughout the same comment block. Update the labels to use "2" and "3" to match the existing numbered list. Fixes: a307bf1db5448 ("rust: block: convert `block::mq` to use `Refcount`") Signed-off-by: Hsiu Che Yu --- rust/kernel/block/mq/request.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/kernel/block/mq/request.rs b/rust/kernel/block/mq/request.rs index ce3e30c81cb5..75d3fdf896e0 100644 --- a/rust/kernel/block/mq/request.rs +++ b/rust/kernel/block/mq/request.rs @@ -39,7 +39,7 @@ /// back ownership to the block layer. /// /// Note that the driver can still obtain new `ARef` even if there is no `ARef`s in existence by -/// using `tag_to_rq`, hence the need to distinguish B and C. +/// using `tag_to_rq`, hence the need to distinguish 2 and 3. /// /// The states are tracked through the private `refcount` field of /// `RequestDataWrapper`. This structure lives in the private data area of the C --- base-commit: b4e07588e743c989499ca24d49e752c074924a9a change-id: 20260428-fix-docs-mq-req-d2a0fe1b6471 Best regards, -- Hsiu Che Yu