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>
Fri, 12 Aug 2011 02:37:14 +0000 (22:37 -0400)
commitb432c1df4779e8cdea1fc257287ea3199da153d1
tree3771cea78ef32bbfe2f8eab59ea60a43998d1152
parent920445af8a7f8c27fb2ac608519bb6d0faec2a80
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