Unionfs: prevent deadlock in cache coherency
authorErez Zadok <ezk@cs.sunysb.edu>
Fri, 21 Dec 2007 04:08:13 +0000 (23:08 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 13 Jan 2009 01:43:29 +0000 (20:43 -0500)
commit1b9b44355a3c07d04720fa0b10dd4ca53813cb45
tree4d113831c256829f52a90db56b454b7ba373ebb3
parent638d16893f597efbcff87908552bad3555788a09
Unionfs: prevent deadlock in cache coherency

Don't try to truncate_inode_pages in in purge_inode_data, because this could
lead to a deadlock between some of address_space ops and dentry
revalidation: the address space op is invoked with a lock on our own page,
and truncate_inode_pages will block on locked pages.  Instead, it should be
enough to be gentler and just invalidate_mapping_pages.

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