[PATCH net-next] vsock: correct removal of socket from the list

2019-07-24 Thread Sunil Muthuswamy via Virtualization
The current vsock code for removal of socket from the list is both subject to race and inefficient. It takes the lock, checks whether the socket is in the list, drops the lock and if the socket was on the list, deletes it from the list. This is subject to race because as soon as the lock is

Re: [PATCH net-next] vsock: correct removal of socket from the list

2019-06-14 Thread David Miller
From: Sunil Muthuswamy Date: Thu, 13 Jun 2019 03:52:27 + > The current vsock code for removal of socket from the list is both > subject to race and inefficient. It takes the lock, checks whether > the socket is in the list, drops the lock and if the socket was on the > list, deletes it from

Re: [PATCH net-next] vsock: correct removal of socket from the list

2019-06-13 Thread Stefan Hajnoczi
On Thu, Jun 13, 2019 at 03:52:27AM +, Sunil Muthuswamy wrote: > The current vsock code for removal of socket from the list is both > subject to race and inefficient. It takes the lock, checks whether > the socket is in the list, drops the lock and if the socket was on the > list, deletes it