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, 27 Apr 2014 02:26:09 +0000 (22:26 -0400)
commit1ca71616aa79651dc4dc15c9d9a42a7dea412b25
treeb55848276f5b9b37ada6c8ccf1cd244afbf659fb
parent53e518b0c8f304ab2037f0125c17065999193fc2
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