Skip to contentSkip to conversation

blk-cgroup: fix blkg_rwstat_recursive_sum() locking kernel-doc

PATCH New Guopeng Zhang 1 participant 1 message Jul 7 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 blk-cgroup: fix blkg_rwstat_recursive_sum() locking kernel-doc

From: Guopeng Zhang <[email protected]>

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.

---
 block/blk-cgroup-rwstat.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
block/blk-cgroup-rwstat.c +2 -2
index aae910713814..20cbcbe064ac 100644
@@ -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.
Signature · 1 line
2.43.0