Commit a14bc376 authored by Ziye Yang's avatar Ziye Yang Committed by Tomasz Zawadzki
Browse files

uring: Fix the code broken when zero-copy send is enabled.



Without this fix, the program will hang in the target side.
If we use SPDK NVMe-of target with tcp transport with uring,

./scripts/rpc.py sock_impl_set_options --enable-zerocopy-send-server -i uring

Then we use nvmf initiator to test, the program hangs.

Signed-off-by: default avatarZiye Yang <ziye.yang@intel.com>
Change-Id: Iea12ee0396008481e8317424d1f405eb03634ed4
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18236


Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 6fb6fda9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1405,8 +1405,7 @@ sock_uring_group_reap(struct spdk_uring_sock_group_impl *group, int max, int max
				_sock_prep_errqueue(&sock->base);
			} else if (status == -ECANCELED) {
				continue;
			} else if (spdk_unlikely(status <= 0)) {
				sock->connection_status = status < 0 ? status : -ECONNRESET;
			} else if (spdk_unlikely(status < 0)) {
				spdk_sock_abort_requests(&sock->base);

				/* The user needs to be notified that this socket is dead. */