Commit 18267a03 authored by Jens Axboe's avatar Jens Axboe
Browse files

block: fix bad lockdep annotation in blk-iolatency



A previous commit added a lockdep annotation, but botched it. Use the
right type.

Fixes: 4eb44d10 ("block: remove init_mutex and open-code blk_iolatency_try_init")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent d21fed50
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)