]> git.baikalelectronics.ru Git - kernel.git/commit
blk-stat: make q->stats->lock irqsafe
authorTejun Heo <tj@kernel.org>
Tue, 1 Sep 2020 18:52:32 +0000 (14:52 -0400)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Sep 2020 22:48:46 +0000 (16:48 -0600)
commitfbb44a878d5c02a4b78f4d4b5a42a044ada1f0af
tree062c215da69eba44baa7a2f416c6299c7a42e832
parent42fa10fc1851d261883944e63fe853b696588160
blk-stat: make q->stats->lock irqsafe

blk-iocost calls blk_stat_enable_accounting() while holding an irqsafe lock
which triggers a lockdep splat because q->stats->lock isn't irqsafe. Let's
make it irqsafe.

Signed-off-by: Tejun Heo <tj@kernel.org>
Fixes: fc03962d648d ("blk-iocost: account for IO size when testing latencies")
Cc: stable@vger.kernel.org # v5.8+
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-stat.c