Spdk/lib
Shuhei Matsumoto dbe7e74cee nvme: Change nvme_qpair_abort_queued_reqs() to set SC_ABORTED_SQ_DELETION
Transport specific qpair_abort_reqs() set SC to SC_ABORTED_SQ_DELETION.
However, nvme_qpair_abort_queued_reqs() set SC to SC_ABORTED_BY_REQUEST
even if its call is not requested by the upper layer.

Change nvme_qpair_abort_queued_reqs() to set SC to SC_ABORTED_SQ_DELETION
for consistency.

nvme_qpair_abort_queued_reqs() is used to abort queued requests that
were sent while adminq was connecting. SC_ABORTED_SQ_DELETION will not
be so bad even for the case.

This change is required for the NVMe bdev module to be resilient for I/O
error. The NVMe bdev module does not retry I/O if SC is
SC_ABORTED_BY_REQUEST.

SC is set to SC_INTERNAL_DEVICE_ERROR if a request is failed to submit
to qpair by a generic qpair layer. We can change it to
SC_ABORTED_SQ_DELETION as well but we keep this for now.
SC_INTERNAL_DEVICE_ERROR is also retriable for the NVMe bdev module.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: I7d8d5e97b222fe9275afc4fed024c1654c9579a2
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12121
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
2022-04-22 09:44:57 +00:00
..
accel accel: cleanup by getting rid of capabilties enum 2022-04-14 08:32:50 +00:00
bdev bdev: Use spdk_for_each_bdev() for bdev_get_io_stat and get_bdevs RPCs 2022-04-14 08:32:12 +00:00
blob blob: add return codes to bs_user_op_abort 2022-03-02 08:39:50 +00:00
blobfs blobfs: Add missing error checks for strdup. 2022-03-22 09:29:42 +00:00
conf so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
dma so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
env_dpdk env_dpdk: do not set RTE_MEMPOOL_F_NO_IOVA_CONTIG 2022-04-15 08:25:54 +00:00
env_ocf bdev/ocf: Improve OCF mpools 2022-03-02 08:34:39 +00:00
event add USDT tracepoints for interrupt wakeups 2022-03-21 11:07:05 +00:00
ftl so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
idxd idxd: Do not allow calls to spdk_idxd_set_config after devices have been 2022-04-21 08:11:33 +00:00
init so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
ioat so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
iscsi iscsi: use EVP APIs for md5 calculations 2022-04-13 08:33:51 +00:00
json so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
jsonrpc so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
log so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
lvol lvol: finish initial iteration even if blob has no name 2022-02-03 19:43:35 +00:00
nbd so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
notify so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
nvme nvme: Change nvme_qpair_abort_queued_reqs() to set SC_ABORTED_SQ_DELETION 2022-04-22 09:44:57 +00:00
nvmf nvmf/vfio-user: support shadow doorbells 2022-04-21 08:12:29 +00:00
rdma so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
reduce lib/reduce: Copy user's buffers if SGL is not supported 2022-03-31 09:34:52 +00:00
rocksdb rocksdb: fix thread name typo 2021-09-03 08:08:20 +00:00
rpc so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
scsi thread: add spdk_thread_exec_msg() 2022-02-23 10:06:49 +00:00
sock sock: Add ack_timeout to spdk_sock_opts 2022-04-14 08:34:29 +00:00
thread add USDT tracepoints for interrupt wakeups 2022-03-21 11:07:05 +00:00
trace so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
trace_parser so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
ut_mock so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
util dif: enhance copy API to support block-aligned bounce_iov 2022-04-01 08:29:12 +00:00
vfio_user so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
vhost lib/vhost: consolidate successful and invalid request path 2022-04-15 07:49:32 +00:00
virtio so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
vmd vmd: use config_bus_number when resetting root ports 2022-04-11 07:44:23 +00:00
Makefile lib/trace_parser: add trace_parser library stubs 2021-09-29 08:57:58 +00:00