mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08: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