]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
vsock: add API call for data ready
authorArseniy Krasnov <AVKrasnov@sberdevices.ru>
Fri, 19 Aug 2022 05:36:52 +0000 (05:36 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 23 Aug 2022 08:43:11 +0000 (10:43 +0200)
commitf2fdcf67aceb1a7d5e0661cb7ca95cda68d3014a
treeea286c6e303a705fa6c241383a23332187771f5d
parentee0b3843a26920dad713c27cd8f3a3cfc5ae9c37
vsock: add API call for data ready

This adds 'vsock_data_ready()' which must be called by transport to kick
sleeping data readers. It checks for SO_RCVLOWAT value before waking
user, thus preventing spurious wake ups. Based on 'tcp_data_ready()' logic.

Signed-off-by: Arseniy Krasnov <AVKrasnov@sberdevices.ru>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/af_vsock.h
net/vmw_vsock/af_vsock.c