# Re: \[PATCH net v3\] vsock: Fix a lockdep warning in \_\_vsock\_release()

- From: David Miller \<davem@davemloft.net\>
- Date: 2019-10-02 01:24:01 
- List: netdev
- Page: https://ratatoskr.run/netdev/2019/10/5731491
- Thread: https://ratatoskr.run/netdev/2019/09/5729799/t.md

```text
From: Dexuan Cui <decui@microsoft.com>
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@redhat.com>
> Signed-off-by: Dexuan Cui <decui@microsoft.com>

Applied, thanks.
```
