From: David Miller <davem@davemloft.net>
To: sgarzare@redhat.com
Cc: georgezhang@vmware.com, acking@vmware.com, decui@microsoft.com,
dtor@vmware.com, netdev@vger.kernel.org, jhansen@vmware.com,
stefanha@redhat.com, linux-kernel@vger.kernel.org,
kuba@kernel.org
Subject: Re: [PATCH net] vsock: fix timeout in vsock_accept()
Date: Wed, 27 May 2020 11:21:06 -0700 (PDT) [thread overview]
Message-ID: <20200527.112106.313537871064974902.davem@davemloft.net> (raw)
In-Reply-To: <20200527075655.69889-1-sgarzare@redhat.com>
From: Stefano Garzarella <sgarzare@redhat.com>
Date: Wed, 27 May 2020 09:56:55 +0200
> 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>
Applied and queued up for -stable, thank you.
prev parent reply other threads:[~2020-05-27 18:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-27 7:56 Stefano Garzarella
2020-05-27 8:44 ` Jorgen Hansen
2020-05-27 18:21 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200527.112106.313537871064974902.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=acking@vmware.com \
--cc=decui@microsoft.com \
--cc=dtor@vmware.com \
--cc=georgezhang@vmware.com \
--cc=jhansen@vmware.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=sgarzare@redhat.com \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®