]> www.infradead.org Git - users/jedix/linux-maple.git/commit
VSOCK: sock_put wasn't safe to call in interrupt context
authorJorgen Hansen <jhansen@vmware.com>
Wed, 21 Oct 2015 11:53:56 +0000 (04:53 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 14:43:53 +0000 (06:43 -0800)
commit83642764528c0cc1d43a7844b271cf249eb9b187
treeaf498f87c085c99e274c2321f4fb384431cfba49
parentdf097adbb2ca50c1548ccfd5fde5020f4e5241cc
VSOCK: sock_put wasn't safe to call in interrupt context

In the vsock vmci_transport driver, sock_put wasn't safe to call
in interrupt context, since that may call the vsock destructor
which in turn calls several functions that should only be called
from process context. This change defers the callling of these
functions  to a worker thread. All these functions were
deallocation of resources related to the transport itself.

Furthermore, an unused callback was removed to simplify the
cleanup.

Multiple customers have been hitting this issue when using
VMware tools on vSphere 2015.

Also added a version to the vmci transport module (starting from
1.0.2.0-k since up until now it appears that this module was
sharing version with vsock that is currently at 1.0.1.0-k).

Reviewed-by: Aditya Asarwade <asarwade@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 4ef7ea9195ea73262cd9730fb54e1eb726da157b)

Orabug: 22820522
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
net/vmw_vsock/vmci_transport.c
net/vmw_vsock/vmci_transport.h