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>
Fri, 20 Jun 2014 00:40:35 +0000 (20:40 -0400)
commit8818599875fdd55e05cd9876f6083794ef892b0b
tree6cbc4a43c867836dbb8ae2a249e2be52f4f0786b
parent947d0fc21368091ba313d8593837582c48afb4c6
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