[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210209083444.nmi73z2zcunqvche@steredhat>
Date: Tue, 9 Feb 2021 09:34:44 +0100
From: Stefano Garzarella <sgarzare@...hat.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, netdev@...r.kernel.org,
Jorgen Hansen <jhansen@...are.com>,
Stephen Hemminger <sthemmin@...rosoft.com>,
Andy King <acking@...are.com>, Wei Liu <wei.liu@...nel.org>,
Dmitry Torokhov <dtor@...are.com>,
"K. Y. Srinivasan" <kys@...rosoft.com>,
George Zhang <georgezhang@...are.com>,
Haiyang Zhang <haiyangz@...rosoft.com>,
linux-kernel@...r.kernel.org, linux-hyperv@...r.kernel.org
Subject: Re: [PATCH net] vsock: fix locking in vsock_shutdown()
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:
>> 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
Powered by blists - more mailing lists