[PATCH 1/5] nvme: add NVME_REQ_CANCELLED flag in nvme_cancel_request()
Keith Busch
kbusch at kernel.org
Wed Jan 27 10:05:26 EST 2021
On Wed, Jan 27, 2021 at 11:33:22AM +0100, Hannes Reinecke wrote:
> NVME_REQ_CANCELLED is translated into -EINTR in nvme_submit_sync_cmd(),
> so we should be setting this flags during nvme_cancel_request() to
> ensure that the callers to nvme_submit_sync_cmd() will get the correct
> error code when the controller is reset.
>
> Signed-off-by: Hannes Reinecke <hare at suse.de>
> Reviewed-by: Daniel Wagner <dwagner at suse.de>
Looks good,
Reviewed-by: Keith Busch <kbusch at kernel.org>
More information about the Linux-nvme
mailing list