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>
Sun, 23 Feb 2014 19:05:20 +0000 (14:05 -0500)
commit9e1004648828ffa85a3cd2754094ceb846fdb3ee
treed1af363efeae718f1a9b26b0a40bdacf77b18154
parent3761c282f5825204bab036b658c6a84a5fa1768d
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