block: fix bad lockdep annotation in blk-iolatency
authorJens Axboe <axboe@kernel.dk>
Thu, 10 Aug 2023 23:24:53 +0000 (17:24 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 10 Aug 2023 23:24:53 +0000 (17:24 -0600)
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>
block/blk-iolatency.c

index c16aef4..c1a6aba 100644 (file)
@@ -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)