summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a38eb63)
raw | patch | inline | side by side (parent: a38eb63)
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>
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
struct bio_list bl;
struct bio *bio;
- lockdep_is_held(q->queue_lock);
+ WARN_ON_ONCE(!queue_is_locked(q));
bio_list_init(&bl);