lkml.org 
[lkml]   [2021]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH net] vsock: fix locking in vsock_shutdown()
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.

\
 
 \ /
  Last update: 2021-02-08 21:36    [W:0.061 / U:1.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site