Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -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);