summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2012-03-30 14:33:28 +0400
committerJens Axboe <axboe@kernel.dk>2012-03-30 14:33:28 +0400
commit8bcb6c7d48eb341b1f49f814cdcbe05eb6f15680 (patch)
tree83ff62ab93d0cf2c2687e5ca8799cac4c5dcfa25 /block
parent00380a404fc4235e9b8b39598138bd3223a27b8a (diff)
downloadlinux-8bcb6c7d48eb341b1f49f814cdcbe05eb6f15680.tar.xz
block: use lockdep_assert_held for queue locking
Instead of an ugly open coded variant. Cc: axboe@kernel.dk Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-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 5eed6a76721d..f2ddb94626bd 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;
- WARN_ON_ONCE(!queue_is_locked(q));
+ queue_lockdep_assert_held(q);
bio_list_init(&bl);