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>
Tue, 3 Jul 2007 23:09:50 +0000 (19:09 -0400)
commit30192c87f78392370eb85a3aeef6ae342ed19e2a
tree1315a6a695a6b6e77d2b89e71f8fe5b842b3fee7
parent73cff3eeda521a4759436726747b2a035e1afcde
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