Unionfs: prevent deadlock with branch-management code.
authorErez_Zadok <ezk@cs.sunysb.edu>
Tue, 3 Jul 2007 13:14:39 +0000 (09:14 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 24 Nov 2013 07:52:46 +0000 (02:52 -0500)
commit87d38f51b3647df1e5e6a9b4ce8505a2874d142a
treeaaf954cef555a392fc21af528907eaf46d268a76
parentd6123a1916478edbd3fc75a2689019164a075ca1
Unionfs: prevent deadlock with branch-management code.

Don't grab the superblock read-lock in unionfs_permission, which prevents a
deadlock with the branch-management "add branch" code (which grabbed the
write lock).  It is safe to not grab the read lock here, because even with
branch management taking place, there is no chance that unionfs_permission,
or anything it calls, will use stale branch information.

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