linux/net/vmw_vsock
Stefan Hajnoczi 7362945aea VSOCK: call sk->sk_data_ready() on accept()
When a listen socket enqueues a connection for userspace to accept(),
the sk->sk_data_ready() callback should be invoked.  In-kernel socket
users rely on this callback to detect when incoming connections are
available.

Currently the sk->sk_state_change() callback is invoked by
vmci_transport.c.  This happens to work for userspace applications since
sk->sk_state_change = sock_def_wakeup() and sk->sk_data_ready =
sock_def_readable() both wake up the accept() waiter.  In-kernel socket
users, on the other hand, fail to detect incoming connections.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-11-04 22:03:10 -05:00
..
af_vsock.c VSOCK: define VSOCK_SS_LISTEN once only 2015-11-01 12:14:47 -05:00
Kconfig
Makefile
vmci_transport_notify_qstate.c
vmci_transport_notify.c
vmci_transport_notify.h
vmci_transport.c VSOCK: call sk->sk_data_ready() on accept() 2015-11-04 22:03:10 -05:00
vmci_transport.h VSOCK: sock_put wasn't safe to call in interrupt context 2015-10-22 07:21:05 -07:00
vsock_addr.c