1
0
Fork 0

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>
hifive-unleashed-5.1
Jens Axboe 2011-10-25 15:51:48 +02:00
parent a38eb630fa
commit 334c2b0b8b
1 changed files with 1 additions and 1 deletions

View File

@ -1218,7 +1218,7 @@ void blk_throtl_drain(struct request_queue *q)
struct bio_list bl;
struct bio *bio;
lockdep_is_held(q->queue_lock);
WARN_ON_ONCE(!queue_is_locked(q));
bio_list_init(&bl);