Skip to content

Commit 334c2b0

Browse files
committed
blk-throttle: use queue_is_locked() instead of lockdep_is_held()
We can't use the latter if !CONFIG_LOCKDEP. Reported-by: Sedat Dilek <sedat.dilek@googlemail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent a38eb63 commit 334c2b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎block/blk-throttle.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ void blk_throtl_drain(struct request_queue *q)
12181218
struct bio_list bl;
12191219
struct bio *bio;
12201220

1221-
lockdep_is_held(q->queue_lock);
1221+
WARN_ON_ONCE(!queue_is_locked(q));
12221222

12231223
bio_list_init(&bl);
12241224

0 commit comments

Comments
 (0)