Unionfs: unionfs_lookup locking consistency
authorErez_Zadok <ezk@cs.sunysb.edu>
Sun, 18 Nov 2007 03:33:46 +0000 (22:33 -0500)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:03:06 +0000 (19:03 -0400)
commitcfbb71ecbe5ab3096ca5e33cc3396e57d5f224bb
tree312fb00051e6e105546b4e6530ac3a61ac14be32
parent0fa67fe069be55f4c9fd9697f944fb2b0294961b
Unionfs: unionfs_lookup locking consistency

Ensure that our lookup locking is consistent and symmetric: if a lock
existed before calling lookup_backend, it should remain so; only if
performing a lookup of a known new dentry, should lookup_backend return a
newly-locked dentry-inode info (and only if there was no error).  Document
this behavior.  This cleanup allowed us to remove two unnecessary int
declarations.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/inode.c
fs/unionfs/lookup.c