blkcg: Drop unnecessary RCU read [un]locks from blkg_conf_prep/finish()
authorTejun Heo <tj@kernel.org>
Thu, 13 Apr 2023 00:06:46 +0000 (14:06 -1000)
committerJens Axboe <axboe@kernel.dk>
Thu, 13 Apr 2023 12:46:48 +0000 (06:46 -0600)
commit83462a6c971cdc550475b672cf29bd3b53bedf84
tree4233724720c205a3798d7642ae8d22d12900bc8a
parentd8898ee50edecacdf0141f26fd90acf43d7e9cd7
blkcg: Drop unnecessary RCU read [un]locks from blkg_conf_prep/finish()

Now that all RCU flavors have been combined either holding a spin lock,
disabling irq or disabling preemption implies RCU read lock, so there's no
need to use rcu_read_[un]lock() explicitly while holding queue_lock. This
shouldn't cause any behavior changes.

v2: Description updated. Leave __acquires/release on queue_lock alone.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230413000649.115785-2-tj@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c