Re: [PATCH v5 12/13] xen/pvcalls: implement release command

2017-10-24 Thread Stefano Stabellini
On Tue, 24 Oct 2017, Boris Ostrovsky wrote: > (I just noticed that I missed this patch, sorry) Thanks for the review! > On 10/06/2017 08:30 PM, Stefano Stabellini wrote: > > Send PVCALLS_RELEASE to the backend and wait for a reply. Take both > > in_mutex and out_mutex to avoid concurrent accesse

Re: [PATCH v5 12/13] xen/pvcalls: implement release command

2017-10-24 Thread Boris Ostrovsky
(I just noticed that I missed this patch, sorry) On 10/06/2017 08:30 PM, Stefano Stabellini wrote: > 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 al

[PATCH v5 12/13] xen/pvcalls: implement release command

2017-10-06 Thread Stefano Stabellini
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