Skip to content

Commit

Permalink
blk-throttle: use queue_is_locked() instead of lockdep_is_held()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jens Axboe committed Oct 25, 2011
1 parent a38eb63 commit 334c2b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/blk-throttle.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 334c2b0

Please sign in to comment.