commit | 334c2b0b8b2ab186fa198413386cba41fffcb4f2 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Tue Oct 25 15:51:48 2011 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Oct 25 15:51:48 2011 +0200 |
tree | 56c4648cd19c6a613ff653933697ee5cc3e18c87 | |
parent | a38eb630fa224d6fba8c14a4063174bc5e0f63bb [diff] |
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>
diff --git a/block/blk-throttle.c b/block/blk-throttle.c index 8edb949..4553245 100644 --- a/block/blk-throttle.c +++ b/block/blk-throttle.c
@@ -1218,7 +1218,7 @@ struct bio_list bl; struct bio *bio; - lockdep_is_held(q->queue_lock); + WARN_ON_ONCE(!queue_is_locked(q)); bio_list_init(&bl);