Skip to content

Commit 18267a0

Browse files
committed
block: fix bad lockdep annotation in blk-iolatency
A previous commit added a lockdep annotation, but botched it. Use the right type. Fixes: 4eb44d1 ("block: remove init_mutex and open-code blk_iolatency_try_init") Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent d21fed5 commit 18267a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

block/blk-iolatency.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ static ssize_t iolatency_set_limit(struct kernfs_open_file *of, char *buf,
846846
* blk_iolatency_init() may fail after rq_qos_add() succeeds which can
847847
* confuse iolat_rq_qos() test. Make the test and init atomic.
848848
*/
849-
lockdep_assert_held(ctx.bdev->bd_queue->rq_qos_mutex);
849+
lockdep_assert_held(&ctx.bdev->bd_queue->rq_qos_mutex);
850850
if (!iolat_rq_qos(ctx.bdev->bd_queue))
851851
ret = blk_iolatency_init(ctx.bdev->bd_disk);
852852
if (ret)

0 commit comments

Comments
 (0)