diff --git a/module/sock/posix/posix.c b/module/sock/posix/posix.c index 0db20dd27..78a146cc7 100644 --- a/module/sock/posix/posix.c +++ b/module/sock/posix/posix.c @@ -801,7 +801,7 @@ _sock_flush(struct spdk_sock *sock) } rc = sendmsg(psock->fd, &msg, flags); if (rc <= 0) { - if (errno == EAGAIN || errno == EWOULDBLOCK) { + if (errno == EAGAIN || errno == EWOULDBLOCK || (errno == ENOBUFS && psock->zcopy)) { return 0; } return rc;