[Virtio-fs] [PATCH 0/2] Remove implicit lock knowledge from lo_destroy

Dr. David Alan Gilbert (git) dgilbert at redhat.com
Fri Aug 23 15:02:43 UTC 2019


From: "Dr. David Alan Gilbert" <dgilbert at redhat.com>

This comes from a comment by Vivek on an earlier review of lo_destroy
fixes.  In this pair I split unref_inode into a locked and unlocked
version and use the unlocked version in lo_destroy with an outer lock.
Note this does move the lo_inode_put inside the lock, but I don't
think that's an issue.

Dr. David Alan Gilbert (2):
  virtiofsd: Rename unref_inode to indicate lock
  virtiofsd: Convert lo_destroy to take the lo->mutex lock itself

 contrib/virtiofsd/passthrough_ll.c | 45 ++++++++++++++++--------------
 1 file changed, 24 insertions(+), 21 deletions(-)

-- 
2.21.0




More information about the Virtio-fs mailing list