[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170913152307.20317-2-mhocko@kernel.org>
Date: Wed, 13 Sep 2017 17:23:06 +0200
From: Michal Hocko <mhocko@...nel.org>
To: "Jorgen S. Hansen" <jhansen@...are.com>
Cc: Aditya Sarwade <asarwade@...are.com>,
Thomas Hellstrom <thellstrom@...are.com>,
Petr Masik <Petr.Masik@...z.cz>,
Ben Hutchings <ben@...adent.org.uk>,
Sasha Levin <alexander.levin@...izon.com>,
netdev@...r.kernel.org, Stable tree <stable@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH stable-3.16 2/3] VSOCK: Fix lockdep issue.
From: Jorgen Hansen <jhansen@...are.com>
commit 8566b86ab9f0f45bc6f7dd422b21de9d0cf5415a upstream.
The recent fix for the vsock sock_put issue used the wrong
initializer for the transport spin_lock causing an issue when
running with lockdep checking.
Testing: Verified fix on kernel with lockdep enabled.
Reviewed-by: Thomas Hellstrom <thellstrom@...are.com>
Signed-off-by: Jorgen Hansen <jhansen@...are.com>
Signed-off-by: David S. Miller <davem@...emloft.net>
Signed-off-by: Michal Hocko <mhocko@...e.com>
---
net/vmw_vsock/vmci_transport.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/vmw_vsock/vmci_transport.c b/net/vmw_vsock/vmci_transport.c
index aed136d27b01..314312272e08 100644
--- a/net/vmw_vsock/vmci_transport.c
+++ b/net/vmw_vsock/vmci_transport.c
@@ -1570,7 +1570,7 @@ static int vmci_transport_socket_init(struct vsock_sock *vsk,
vmci_trans(vsk)->notify_ops = NULL;
INIT_LIST_HEAD(&vmci_trans(vsk)->elem);
vmci_trans(vsk)->sk = &vsk->sk;
- vmci_trans(vsk)->lock = __SPIN_LOCK_UNLOCKED(vmci_trans(vsk)->lock);
+ spin_lock_init(&vmci_trans(vsk)->lock);
if (psk) {
vmci_trans(vsk)->queue_pair_size =
vmci_trans(psk)->queue_pair_size;
--
2.14.1
Powered by blists - more mailing lists