diff options
author | Andi Kleen <ak@linux.intel.com> | 2012-03-30 12:33:28 +0200 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2012-04-18 20:30:32 +0530 |
commit | 5366bef6a3ff3598d890527dcae8956c77c6f9a2 (patch) | |
tree | ec4758aa49c5fd294dc572d09d0766116ac352dd /block | |
parent | 33575302ed6e90efd7ed43f5a3c4b88700d4c90d (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')
-rw-r--r-- | block/blk-throttle.c | 2 |
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); |