projects
/
linux-flexiantxendom0-3.2.10.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a38eb63
)
blk-throttle: use queue_is_locked() instead of lockdep_is_held()
author
Jens Axboe <axboe@kernel.dk>
Tue, 25 Oct 2011 13:51:48 +0000
(15:51 +0200)
committer
Jens Axboe <axboe@kernel.dk>
Tue, 25 Oct 2011 13:51:48 +0000
(15:51 +0200)
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>
block/blk-throttle.c
patch
|
blob
|
history
diff --git
a/block/blk-throttle.c
b/block/blk-throttle.c
index
8edb949
..
4553245
100644
(file)
--- 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);