Re: [PATCH v3 1/2] pvcalls-front: introduce a per sock_mapping refcount

2018-02-15 Thread Juergen Gross
On 14/02/18 19:28, Stefano Stabellini wrote: > Introduce a per sock_mapping refcount, in addition to the existing > global refcount. Thanks to the sock_mapping refcount, we can safely wait > for it to be 1 in pvcalls_front_release before freeing an active socket, > instead of waiting for the global

[PATCH v3 1/2] pvcalls-front: introduce a per sock_mapping refcount

2018-02-14 Thread Stefano Stabellini
Introduce a per sock_mapping refcount, in addition to the existing global refcount. Thanks to the sock_mapping refcount, we can safely wait for it to be 1 in pvcalls_front_release before freeing an active socket, instead of waiting for the global refcount to be 1. Signed-off-by: Stefano Stabellini