Re: [RFC PATCH v2 01/13] af_vsock: implement 'vsock_wait_data()'.

2021-01-18 Thread Stefano Garzarella
On Fri, Jan 15, 2021 at 08:40:25AM +0300, Arseny Krasnov wrote: This adds 'vsock_wait_data()' function which is called from user's read syscall and waits until new socket data is arrived. It was based on code from stream dequeue logic and moved to separate function because it will be called both

[RFC PATCH v2 01/13] af_vsock: implement 'vsock_wait_data()'.

2021-01-14 Thread Arseny Krasnov
This adds 'vsock_wait_data()' function which is called from user's read syscall and waits until new socket data is arrived. It was based on code from stream dequeue logic and moved to separate function because it will be called both from SOCK_STREAM and SOCK_SEQPACKET receive loops.