]> git.proxmox.com Git - mirror_qemu.git/commit
virtiofsd: Convert lo_destroy to take the lo->mutex lock itself
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 23 Aug 2019 14:39:24 +0000 (15:39 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 23 Jan 2020 16:41:37 +0000 (16:41 +0000)
commitfe4c15798a48143dd6b1f58d2d3cad12206ce211
tree6b4794b93ffcd1fddb901ea6744b16c1bc528572
parent951b3120dbc971f08681e1d860360e4a1e638902
virtiofsd: Convert lo_destroy to take the lo->mutex lock itself

lo_destroy was relying on some implicit knowledge of the locking;
we can avoid this if we create an unref_inode that doesn't take
the lock and then grab it for the whole of the lo_destroy.

Suggested-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tools/virtiofsd/passthrough_ll.c