diff options
author | Arseniy Krasnov <AVKrasnov@sberdevices.ru> | 2022-08-19 08:41:35 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-08-23 11:43:12 +0300 |
commit | e061aed99855ccef2d64f5bdd66996e19d6cf60b (patch) | |
tree | 00f0e1f5c894ffefc07b8a48bd53aff8b2f0c6a2 /net/vmw_vsock/hyperv_transport.c | |
parent | 39f1ed33a4489e2f7a55d5a96576c73af3529461 (diff) | |
download | linux-e061aed99855ccef2d64f5bdd66996e19d6cf60b.tar.xz |
vmci/vsock: check SO_RCVLOWAT before wake up reader
This adds extra condition to wake up data reader: do it only when number
of readable bytes >= SO_RCVLOWAT. Otherwise, there is no sense to kick
user, because it will wait until SO_RCVLOWAT bytes will be dequeued. This
check is performed in vsock_data_ready().
Signed-off-by: Arseniy Krasnov <AVKrasnov@sberdevices.ru>
Reviewed-by: Vishnu Dasa <vdasa@vmware.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/vmw_vsock/hyperv_transport.c')
0 files changed, 0 insertions, 0 deletions