summaryrefslogtreecommitdiffstats
path: root/block/blk-throttle.c
diff options
context:
space:
mode:
authorJens Axboe2011-10-25 15:51:48 +0200
committerJens Axboe2011-10-25 15:51:48 +0200
commit334c2b0b8b2ab186fa198413386cba41fffcb4f2 (patch)
tree56c4648cd19c6a613ff653933697ee5cc3e18c87 /block/blk-throttle.c
parentblk-throttle: Take blkcg->lock while traversing blkcg->policy_list (diff)
downloadkernel-qcow2-linux-334c2b0b8b2ab186fa198413386cba41fffcb4f2.tar.gz
kernel-qcow2-linux-334c2b0b8b2ab186fa198413386cba41fffcb4f2.tar.xz
kernel-qcow2-linux-334c2b0b8b2ab186fa198413386cba41fffcb4f2.zip
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>
Diffstat (limited to 'block/blk-throttle.c')
-rw-r--r--block/blk-throttle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-throttle.c b/block/blk-throttle.c
index 8edb9499b509..4553245d9317 100644
--- a/block/blk-throttle.c
+++ b/block/blk-throttle.c
@@ -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);