Spdk/lib
Shuhei Matsumoto cd2714b5b5 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>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12121 (master)

(cherry picked from commit dbe7e74cee)
Change-Id: I7d8d5e97b222fe9275afc4fed024c1654c9579a2
Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12486
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2022-06-30 13:32:31 -04:00
..
accel accel: Use vectored crc32 operations instead of chaining 2022-06-30 13:32:30 -04:00
bdev trace: add traces around io_device name 2022-06-30 13:32:31 -04:00
blob blob: avoid recursion when split IO immmediately complete 2022-06-30 13:32:31 -04:00
blobfs trace: move all trace definitions to a separate file 2022-06-30 13:32:26 -04:00
conf so_ver: increase all major versions 2021-02-05 14:43:47 +00:00
dma dma: Add infrstructure for push operation 2022-06-30 13:32:26 -04:00
env_dpdk env/memory: fix unregistration of memory after memory registration issue 2022-06-30 13:32:31 -04:00
env_ocf bdev/ocf: Improve OCF mpools 2022-06-30 13:32:31 -04:00
event app.c: respect all/0xffff argument 2022-06-30 13:32:31 -04:00
ftl spelling: lib 2022-06-30 13:32:28 -04:00
idxd idxd: fix bug with cancelling a batch 2022-06-30 13:32:31 -04:00
init rpc: add method for listing PCI devices 2022-06-30 13:32:29 -04:00
ioat ioat: fix potential double free problem in ioat_channel_start() 2021-06-16 09:00:37 +00:00
iscsi iscsi: use EVP APIs for md5 calculations 2022-06-30 13:32:31 -04:00
json json: add spdk_json_write_bytearray 2022-06-30 13:32:29 -04:00
jsonrpc spelling: lib 2022-06-30 13:32:28 -04:00
log lib/log: move some log level function to log.c 2022-06-30 13:32:30 -04:00
lvol spelling: lib 2022-06-30 13:32:28 -04:00
nbd spelling: lib 2022-06-30 13:32:28 -04:00
notify so_ver: increase all major versions 2021-02-05 14:43:47 +00:00
nvme nvme: Change nvme_qpair_abort_queued_reqs() to set SC_ABORTED_SQ_DELETION 2022-06-30 13:32:31 -04:00
nvmf nvmf/rdma: use LIFO practice for incoming queue 2022-06-30 13:32:31 -04:00
rdma rdma: Set REMOTE_WRITE permission for iWARP on target side 2022-06-30 13:32:28 -04:00
reduce spelling: lib 2022-06-30 13:32:28 -04:00
rocksdb rocksdb: fix thread name typo 2021-09-03 08:08:20 +00:00
rpc Initial changes. 2022-02-08 15:51:30 -05:00
scsi Lib/iSCSI: add the LUN Resize support 2022-06-30 13:32:31 -04:00
sock lib/sock: create common lookup for spdk_sock_group_impl 2022-06-30 13:32:28 -04:00
thread thread: fix double unlock in spdk_io_device_register 2022-06-30 13:32:31 -04:00
trace trace_flags.c: modify errorlog text for duplicate tgroups 2022-06-30 13:32:30 -04:00
trace_parser spelling: lib 2022-06-30 13:32:28 -04:00
ut_mock so_ver: increase all major versions 2021-02-05 14:43:47 +00:00
util util: Add spdk_ioviter for iterating iovecs 2022-06-30 13:32:29 -04:00
vfio_user spelling: lib 2022-06-30 13:32:28 -04:00
vhost lib/vhost: use contructor to initalize g_dpdk_sem 2022-06-30 13:32:31 -04:00
virtio spelling: lib 2022-06-30 13:32:28 -04:00
vmd vmd: use config_bus_number when resetting root ports 2022-06-30 13:32:31 -04:00
Makefile lib/trace_parser: add trace_parser library stubs 2022-06-30 13:32:25 -04:00