diff options
| author | Ming Lei <[email protected]> | 2023-11-17 02:35:23 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-11-17 17:48:58 +0000 |
| commit | 35a99d6557cacbc177314735342f77a2dda41872 (patch) | |
| tree | d1b6782237525cbe86009fcd80ca57ff493b7c21 /fs/jbd2/commit.c | |
| parent | blk-throttle: fix lockdep warning of "cgroup_mutex or RCU read lock required!" (diff) | |
| download | kernel-35a99d6557cacbc177314735342f77a2dda41872.tar.gz kernel-35a99d6557cacbc177314735342f77a2dda41872.zip | |
blk-cgroup: avoid to warn !rcu_read_lock_held() in blkg_lookup()
So far, all callers either holds spin lock or rcu read explicitly, and
most of the caller has added WARN_ON_ONCE(!rcu_read_lock_held()) or
lockdep_assert_held(&disk->queue->queue_lock).
Remove WARN_ON_ONCE(!rcu_read_lock_held()) from blkg_lookup() for
killing the false positive warning from blkg_conf_prep().
Reported-by: Changhui Zhong <[email protected]>
Fixes: 83462a6c971c ("blkcg: Drop unnecessary RCU read [un]locks from blkg_conf_prep/finish()")
Signed-off-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
