[PATCH V3 3/3] nvme: retry commands based on ACRE flag
Keith Busch
kbusch at kernel.org
Fri Jan 15 12:04:12 EST 2021
On Thu, Jan 14, 2021 at 10:31:10PM +0900, Minwoo Im wrote:
> @@ -317,6 +316,13 @@ static inline enum nvme_disposition nvme_decide_disposition(struct request *req)
> return COMPLETE;
> }
>
> + if (nvme_req(req)->ctrl->acre &&
> + !nvme_is_path_error(nvme_req(req)->status) &&
> + !blk_queue_dying(req->q))
> + return RETRY;
Is there really any reason to tie this to acre?
> + else if (blk_noretry_request(req))
> + return COMPLETE;
I am not sure we should ignore the FAILFAST for non-path errors. If we
need retryable admin commands, we should let the driver provide a way
for callers to dispatch requests without that flag.
More information about the Linux-nvme
mailing list