]> git.baikalelectronics.ru Git - kernel.git/commit
blk-cgroup: delete rcu_read_lock_held() WARN_ON_ONCE()
authorJens Axboe <axboe@kernel.dk>
Wed, 18 May 2022 22:32:00 +0000 (16:32 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 18 May 2022 22:32:00 +0000 (16:32 -0600)
commit057a57559e3992ae1fda11841315728d76cb0dc3
treeeb19ac04fbc9357562030df99f72990c91956be6
parent2f05aab8cad1ee7f189a02d35aa73a47d11fbcb4
blk-cgroup: delete rcu_read_lock_held() WARN_ON_ONCE()

A previous commit got rid of unnecessary rcu_read_lock() inside the
IRQ disabling queue_lock, but this debug statement was left. It's now
firing since we are indeed not inside a RCU read lock, but we don't
need to be as we're still preempt safe.

Get rid of the check, as we have a lockdep assert for holding the
queue lock right after it anyway.

Link: https://lore.kernel.org/linux-block/46253c48-81cb-0787-20ad-9133afdd9e21@samsung.com/
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Fixes: bd1705ce63f2 ("blk-cgroup: Remove unnecessary rcu_read_lock/unlock()")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c