Re: [PATCH 088/104] virtiofsd: make lo_release() atomic

2020-01-07 Thread Daniel P . Berrangé
On Thu, Dec 12, 2019 at 04:38:48PM +, Dr. David Alan Gilbert (git) wrote: > From: Stefan Hajnoczi > > Hold the lock across both lo_map_get() and lo_map_remove() to prevent > races between two FUSE_RELEASE requests. In this case I don't see a > serious bug but it's safer to do things atomical

[PATCH 088/104] virtiofsd: make lo_release() atomic

2019-12-12 Thread Dr. David Alan Gilbert (git)
From: Stefan Hajnoczi Hold the lock across both lo_map_get() and lo_map_remove() to prevent races between two FUSE_RELEASE requests. In this case I don't see a serious bug but it's safer to do things atomically. Signed-off-by: Stefan Hajnoczi --- tools/virtiofsd/passthrough_ll.c | 12