projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
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 8edb9499b509b9dc8439d98530d31665e9afca04..4553245d93175bc34ddd83966e640161ca81e89f 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);