aboutsummaryrefslogtreecommitdiff
path: root/block/blk-throttle.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2012-03-30 12:33:28 +0200
committerJens Axboe <axboe@kernel.dk>2012-03-30 12:33:28 +0200
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 5eed6a76721..f2ddb94626b 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);