summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2023-08-11 02:24:53 +0300
committerJens Axboe <axboe@kernel.dk>2023-08-11 02:24:53 +0300
commit18267a0365d6ec8bbe85ba8cbea5af12d9e59610 (patch)
tree8038746976ceb5294280c40d8c28d9bd98e5a3bb /block
parentd21fed50c523d87af6456697ad09378060c4f09a (diff)
downloadlinux-18267a0365d6ec8bbe85ba8cbea5af12d9e59610.tar.xz
block: fix bad lockdep annotation in blk-iolatency
A previous commit added a lockdep annotation, but botched it. Use the right type. Fixes: 4eb44d10766a ("block: remove init_mutex and open-code blk_iolatency_try_init") Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r--block/blk-iolatency.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-iolatency.c b/block/blk-iolatency.c
index c16aef4be036..c1a6aba1d59e 100644
--- a/block/blk-iolatency.c
+++ b/block/blk-iolatency.c
@@ -846,7 +846,7 @@ static ssize_t iolatency_set_limit(struct kernfs_open_file *of, char *buf,
* blk_iolatency_init() may fail after rq_qos_add() succeeds which can
* confuse iolat_rq_qos() test. Make the test and init atomic.
*/
- lockdep_assert_held(ctx.bdev->bd_queue->rq_qos_mutex);
+ lockdep_assert_held(&ctx.bdev->bd_queue->rq_qos_mutex);
if (!iolat_rq_qos(ctx.bdev->bd_queue))
ret = blk_iolatency_init(ctx.bdev->bd_disk);
if (ret)