lkml.org 
[lkml]   [2015]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] VSOCK: call sk->sk_data_ready() on accept()
From
From: Stefan Hajnoczi <stefanha@redhat.com>
Date: Wed, 4 Nov 2015 12:58:42 +0000

> 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>

Applied.


\
 
 \ /
  Last update: 2015-11-05 04:21    [W:0.631 / U:1.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site