Commit ee21fc24 authored by Ben Walker's avatar Ben Walker Committed by Jim Harris
Browse files

sock: Allow flushing even if the socket is in a poll group



If we call flush, we want to flush regardless of whether there is a poll
group.

Signed-off-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16420

 (master)

(cherry picked from commit ac9dbf79)
Change-Id: I88680105d999a909f3f1fe75be9caff31a8555ff
Signed-off-by: default avatarKrzysztof Karas <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16484


Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent c543af83
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -520,11 +520,6 @@ spdk_sock_flush(struct spdk_sock *sock)
		return -1;
	}

	/* Sock is in a polling group, so group polling mechanism will work */
	if (sock->group_impl != NULL) {
		return 0;
	}

	return sock->net_impl->flush(sock);
}