提交 334c2b0b 编写于 作者: J Jens Axboe

blk-throttle: use queue_is_locked() instead of lockdep_is_held()

We can't use the latter if !CONFIG_LOCKDEP.
Reported-by: NSedat Dilek <sedat.dilek@googlemail.com>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
上级 a38eb630
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册