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, 11 Nov 2014 01:21:43 +0000 (20:21 -0500)
commit24c97b82903319c26cd1affc5ea908281b6d1b9e
tree0473715ec5e9328bdb3dc8856767b65c193c9acd
parent5b59c4c2d5bd7e1814e4baafe444e410a6390923
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