Message ID | 20200525093807.805155-5-ming.lei@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | blk-mq: support batching dispatch from scheduler | expand |
diff --git a/block/blk-mq.c b/block/blk-mq.c index 1b257a94b020..a368eeb9d378 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1410,13 +1410,6 @@ bool blk_mq_dispatch_rq_list(struct blk_mq_hw_ctx *hctx, struct list_head *list, } else blk_mq_update_dispatch_busy(hctx, false); - /* - * If the host/device is unable to accept more work, inform the - * caller of that. - */ - if (ret == BLK_STS_RESOURCE || ret == BLK_STS_DEV_RESOURCE) - return false; - return (queued + errors) != 0; }