]> git.baikalelectronics.ru Git - kernel.git/commit
xen/pvcalls: implement release command
authorStefano Stabellini <sstabellini@kernel.org>
Mon, 30 Oct 2017 22:41:02 +0000 (15:41 -0700)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Tue, 31 Oct 2017 13:05:53 +0000 (09:05 -0400)
commit86ce1289d3e915aeac083f9f751c41a2c389cdb2
tree20ab8b2a3827d6dbce43bf026121e4bb36cfc908
parentac2cf826aa523e709c20ed201e461001a75e5fe0
xen/pvcalls: implement release command

Send PVCALLS_RELEASE to the backend and wait for a reply. Take both
in_mutex and out_mutex to avoid concurrent accesses. Then, free the
socket.

For passive sockets, check whether we have already pre-allocated an
active socket for the purpose of being accepted. If so, free that as
well.

Signed-off-by: Stefano Stabellini <stefano@aporeto.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
CC: boris.ostrovsky@oracle.com
CC: jgross@suse.com
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
drivers/xen/pvcalls-front.c
drivers/xen/pvcalls-front.h