https://github.com/torvalds/linux
Revision 7e0afbdfd13d1e708fe96e31c46c4897101a6a43 authored by Stefano Garzarella on 27 May 2020, 07:56:55 UTC, committed by David S. Miller on 27 May 2020, 18:20:23 UTC
The accept(2) is an "input" socket interface, so we should use
SO_RCVTIMEO instead of SO_SNDTIMEO to set the timeout.

So this patch replace sock_sndtimeo() with sock_rcvtimeo() to
use the right timeout in the vsock_accept().

Fixes: d021c344051a ("VSOCK: Introduce VM Sockets")
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 5b186cd
History
Tip revision: 7e0afbdfd13d1e708fe96e31c46c4897101a6a43 authored by Stefano Garzarella on 27 May 2020, 07:56:55 UTC
vsock: fix timeout in vsock_accept()
Tip revision: 7e0afbd
File Mode Size
crush
Kconfig -rw-r--r-- 1.1 KB
Makefile -rw-r--r-- 439 bytes
armor.c -rw-r--r-- 1.9 KB
auth.c -rw-r--r-- 7.9 KB
auth_none.c -rw-r--r-- 3.1 KB
auth_none.h -rw-r--r-- 502 bytes
auth_x.c -rw-r--r-- 23.1 KB
auth_x.h -rw-r--r-- 1013 bytes
auth_x_protocol.h -rw-r--r-- 1.9 KB
buffer.c -rw-r--r-- 1.2 KB
ceph_common.c -rw-r--r-- 20.0 KB
ceph_hash.c -rw-r--r-- 2.9 KB
ceph_strings.c -rw-r--r-- 1.2 KB
cls_lock_client.c -rw-r--r-- 11.5 KB
crypto.c -rw-r--r-- 7.9 KB
crypto.h -rw-r--r-- 1.0 KB
debugfs.c -rw-r--r-- 12.1 KB
decode.c -rw-r--r-- 2.0 KB
messenger.c -rw-r--r-- 88.6 KB
mon_client.c -rw-r--r-- 33.2 KB
msgpool.c -rw-r--r-- 2.3 KB
osd_client.c -rw-r--r-- 143.6 KB
osdmap.c -rw-r--r-- 60.5 KB
pagelist.c -rw-r--r-- 4.0 KB
pagevec.c -rw-r--r-- 3.3 KB
snapshot.c -rw-r--r-- 1.6 KB
string_table.c -rw-r--r-- 2.2 KB
striper.c -rw-r--r-- 7.7 KB

back to top