diff options
author | Hannes Reinecke <[email protected]> | 2021-02-26 08:17:26 +0100 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2021-03-11 11:48:34 +0100 |
commit | d3589381987ec879b03f8ce3039df57e87f05901 (patch) | |
tree | 2eec8f55c576ae0850c82dd02104740e37af35fc /lib/mpi/mpiutil.c | |
parent | d95c1f4179a7f3ea8aa728ed00252a8ed0f8158f (diff) |
nvme: add NVME_REQ_CANCELLED flag in nvme_cancel_request()
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 <[email protected]>
Reviewed-by: Keith Busch <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Reviewed-by: Chao Leng <[email protected]>
Reviewed-by: Daniel Wagner <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions