net/smc: make sure EPOLLOUT is raised
authorJason Baron <jbaron@akamai.com>
Mon, 19 Aug 2019 18:36:01 +0000 (14:36 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2019 19:25:14 +0000 (12:25 -0700)
commit4651d1802f7063e4d8c0bcad957f46ece0c04024
treeeef445be3c4cd30af7330eb9bc1222e929e13a9d
parent1edfb8ed6cc12107c2ec61b5be7bc881cfc4460e
net/smc: make sure EPOLLOUT is raised

Currently, we are only explicitly setting SOCK_NOSPACE on a write timeout
for non-blocking sockets. Epoll() edge-trigger mode relies on SOCK_NOSPACE
being set when -EAGAIN is returned to ensure that EPOLLOUT is raised.
Expand the setting of SOCK_NOSPACE to non-blocking sockets as well that can
use SO_SNDTIMEO to adjust their write timeout. This mirrors the behavior
that Eric Dumazet introduced for tcp sockets.

Signed-off-by: Jason Baron <jbaron@akamai.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Ursula Braun <ubraun@linux.ibm.com>
Cc: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_tx.c