← Prev in month
← Prev in thread
Next in thread →
Next in month →
[RFC v3 7/7] Vhost-vsock: Silence lockep error
From: Claudio Imbrenda <>
This patch uses nested locking to silence a lockdep error.
I'm not sure if it won't actually allow for deadlocks.
Signed-off-by: Claudio Imbrenda <>
---
net/vmw_vsock/af_vsock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c
index 112fa8b..e66c469 100644
--- a/net/vmw_vsock/af_vsock.c
+++ b/net/vmw_vsock/af_vsock.c
@@ -1292,7 +1292,7 @@ static int vsock_accept(struct socket *sock, struct socket *newsock, int flags)
if (connected) {
listener->sk_ack_backlog--;
- lock_sock(connected);
+ lock_sock_nested(connected, SINGLE_DEPTH_NESTING);
vconnected = vsock_sk(connected);
/* If the listener socket has received an error, then we should
--
1.9.1
← Prev in month
← Prev in thread
Next in thread →
Next in month →