mirror of
https://github.com/joel16/android_kernel_sony_msm8994.git
synced 2024-12-04 02:13:18 +00:00
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:
parent
a38eb630fa
commit
334c2b0b8b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user