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>
Thu, 16 Jun 2011 22:45:30 +0000 (15:45 -0700)
commit52030b160c8053c497b1d3c55fb24981b6a1195d
treeec4477f1f67bb8e8256fd67e6912731b728bc075
parent3126cea1e30620cdeb82c3d89ca4df541bc1da4c
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