aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-throttle.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2012-03-30 06:33:28 -0400
committerJens Axboe <axboe@kernel.dk>2012-03-30 06:33:28 -0400
commit8bcb6c7d48eb341b1f49f814cdcbe05eb6f15680 (patch)
tree83ff62ab93d0cf2c2687e5ca8799cac4c5dcfa25 /block/blk-throttle.c
parent00380a404fc4235e9b8b39598138bd3223a27b8a (diff)
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/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 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)
1218 struct bio_list bl; 1218 struct bio_list bl;
1219 struct bio *bio; 1219 struct bio *bio;
1220 1220
1221 WARN_ON_ONCE(!queue_is_locked(q)); 1221 queue_lockdep_assert_held(q);
1222 1222
1223 bio_list_init(&bl); 1223 bio_list_init(&bl);
1224 1224