Unionfs: check UNIONFS_D() before unionfs_check_dentry during release
authorRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Fri, 14 Mar 2008 03:36:31 +0000 (23:36 -0400)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Fri, 14 Mar 2008 03:36:31 +0000 (23:36 -0400)
commit2eac778886c080c6d74868cd75fc20d4ef8c5b07
treea6beef1bb317d9302489bf4cad25265dc1330047
parent0cba0e777b2bc0b09b422c25f74605bc364264ec
Unionfs: check UNIONFS_D() before unionfs_check_dentry during release

When we are at the point of releasing a unionfs dentry, check the sanity of
the dentry after we have established that UNIONFS_D() is not NULL.  This
solves a potential race between two threads trying to release the same
dentry.

Signed-off-by: Rachita Kothiyal <rachita@fsl.cs.sunysb.edu>
fs/unionfs/dentry.c