Commit 98bc1f27 authored by Jens Axboe's avatar Jens Axboe

blk-mq remove debug BUG_ON() when draining software queues

It's never been of any use, lets get rid of it.
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 5810d903
...@@ -599,7 +599,6 @@ static void __blk_mq_run_hw_queue(struct blk_mq_hw_ctx *hctx) ...@@ -599,7 +599,6 @@ static void __blk_mq_run_hw_queue(struct blk_mq_hw_ctx *hctx)
for_each_set_bit(bit, hctx->ctx_map, hctx->nr_ctx) { for_each_set_bit(bit, hctx->ctx_map, hctx->nr_ctx) {
clear_bit(bit, hctx->ctx_map); clear_bit(bit, hctx->ctx_map);
ctx = hctx->ctxs[bit]; ctx = hctx->ctxs[bit];
BUG_ON(bit != ctx->index_hw);
spin_lock(&ctx->lock); spin_lock(&ctx->lock);
list_splice_tail_init(&ctx->rq_list, &rq_list); list_splice_tail_init(&ctx->rq_list, &rq_list);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment