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

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

From: Jakub Kicinski <kuba@kernel.org>
Date: 2021-02-08 20:32:25
Also in: linux-hyperv, lkml

On Mon, 8 Feb 2021 16:04:31 +0100 Stefano Garzarella wrote:
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help