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>
Tue, 31 Jan 2012 04:55:19 +0000 (23:55 -0500)
commita3885811853a7cb34e4d9fbf053fecbc5a242f4d
tree79e9249568a270913d5664f21a5f5086c29e8d7d
parent133d8dd7dbe5bccf7456801129b886f7eeffb2e7
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