Skip to content

Commit cedebd1

Browse files
HsiuCheYukernel-patches-daemon
authored andcommitted
rust: block: fix comment referring to states by wrong labels
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: a307bf1 ("rust: block: convert `block::mq` to use `Refcount`") Signed-off-by: Hsiu Che Yu <[email protected]>
1 parent 25a041f commit cedebd1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/kernel/block/mq/request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ use core::{marker::PhantomData, ptr::NonNull};
3939
/// back ownership to the block layer.
4040
///
4141
/// Note that the driver can still obtain new `ARef` even if there is no `ARef`s in existence by
42-
/// using `tag_to_rq`, hence the need to distinguish B and C.
42+
/// using `tag_to_rq`, hence the need to distinguish 2 and 3.
4343
///
4444
/// The states are tracked through the private `refcount` field of
4545
/// `RequestDataWrapper`. This structure lives in the private data area of the C

0 commit comments

Comments
 (0)