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>
This commit is contained in:
Jens Axboe 2011-10-25 15:51:48 +02:00
parent a38eb630fa
commit 334c2b0b8b

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);