]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbc97f82be565a588b40a06d4f76f53772edf61f8
treeeef445be3c4cd30af7330eb9bc1222e929e13a9d
parent3c8c4e9cd3f64723df9abb1ac46d8eb25f8e4ec4
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