[PATCH] blk-cgroup: fix blkg_rwstat_recursive_sum() locking kernel-doc
From: Guopeng Zhang
Date: Tue Jul 07 2026 - 08:20:23 EST
From: Guopeng Zhang <zhangguopeng@xxxxxxxxxx>
blkg_rwstat_recursive_sum() now runs under RCU read-side protection: it
warns if the RCU read lock is not held and no longer relies on the queue
lock for online tests. Update the kernel-doc to match the code.
Signed-off-by: Guopeng Zhang <zhangguopeng@xxxxxxxxxx>
---
block/blk-cgroup-rwstat.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/block/blk-cgroup-rwstat.c b/block/blk-cgroup-rwstat.c
index aae910713814..20cbcbe064ac 100644
--- a/block/blk-cgroup-rwstat.c
+++ b/block/blk-cgroup-rwstat.c
@@ -88,8 +88,8 @@ EXPORT_SYMBOL_GPL(blkg_prfill_rwstat);
* @sum: blkg_rwstat_sample structure containing the results
*
* Collect the blkg_rwstat specified by @blkg, @pol and @off and all its
- * online descendants and their aux counts. The caller must be holding the
- * queue lock for online tests.
+ * online descendants and their aux counts. The caller must hold the
+ * RCU read lock.
*
* If @pol is NULL, blkg_rwstat is at @off bytes into @blkg; otherwise, it
* is at @off bytes into @blkg's blkg_policy_data of the policy.
--
2.43.0