Unionfs: prevent deadlock in cache coherency
authorErez Zadok <ezk@cs.sunysb.edu>
Thu, 10 Jan 2008 11:58:19 +0000 (06:58 -0500)
committerRachita Kothiyal <rachita@dewey.fsl.cs.sunysb.edu>
Thu, 1 May 2008 23:03:29 +0000 (19:03 -0400)
commitdda915b6a2cd642159a8bec9591aca10c53c5234
treef6ec507e0c878908b0213704375bb6b318607732
parenta36218f534cb62cfcb96fdc77028af1351c59f5f
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