Unionfs: unionfs_lookup locking consistency
authorErez_Zadok <ezk@cs.sunysb.edu>
Tue, 11 Sep 2007 00:15:37 +0000 (20:15 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Wed, 20 May 2009 20:59:17 +0000 (16:59 -0400)
commit622bf21f8fe91c0944587f1591759687f376bfde
treec911d02053292b0f9e9eaef5b6d188dedfad98d2
parent75e9a07fe8d776d93eeb561e9c3acf574b5e3052
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