Thread (4 messages) flat view 4 messages, 2 authors, 2021-02-09

Re: [PATCH net] vsock: fix locking in vsock_shutdown()

From: Stefano Garzarella <sgarzare@redhat.com>
Date: 2021-02-09 08:38:05
Also in: linux-hyperv, lkml

On Mon, Feb 08, 2021 at 11:12:00AM -0800, Jakub Kicinski wrote:
On Mon, 8 Feb 2021 16:04:31 +0100 Stefano Garzarella wrote:
quoted
What do you suggest?

I did it this way because by modifying only the caller, we would have a
nested lock.

This way instead we are sure that if we backport this patch, we don't
forget to touch hvs_shutdown() as well.
I'm not a socket expert but the approach seems reasonable to me.
Thanks, I'll send v2 fixing the warning.

Stefano
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help