Re: [PATCH net v3] vsock: Fix a lockdep warning in __vsock_release()

From: David Miller
Date: Tue Oct 01 2019 - 21:23:59 EST


From: Dexuan Cui <decui@xxxxxxxxxxxxx>
Date: Mon, 30 Sep 2019 18:43:50 +0000

> Lockdep is unhappy if two locks from the same class are held.
>
> Fix the below warning for hyperv and virtio sockets (vmci socket code
> doesn't have the issue) by using lock_sock_nested() when __vsock_release()
> is called recursively:
...
> Tested-by: Stefano Garzarella <sgarzare@xxxxxxxxxx>
> Signed-off-by: Dexuan Cui <decui@xxxxxxxxxxxxx>

Applied, thanks.