public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* TAKE 960028 - XFS tripping bug in cancel_dirty_pages in 2.6.20-rc3
@ 2007-01-11  6:23 David Chinner
  0 siblings, 0 replies; only message in thread
From: David Chinner @ 2007-01-11  6:23 UTC (permalink / raw)
  To: xfs, sgi.bugs.xfs

Unmap pages before removing them from the page cache.

The new cancel_dirty_pages() code found that XFS was removing
page from the page cache that had dirty page table entries.
XFS invalidates page cache pages via internal interfaces which
are implemented via truncate_inode_pages which does not remove
the page mapping first.

Switch to using invalidate_inode_pages2_range() which does almost
the same thing except it also removes page table mappings as
expected by cancel_dirty_pages.

Date:  Thu Jan 11 17:23:10 AEDT 2007
Workarea:  chook.melbourne.sgi.com:/build/dgc/isms/2.6.x-xfs
Inspected by:  hch@infradead.org,lachlan

The following file(s) were checked into:
  longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb


Modid:  xfs-linux-melb:xfs-kern:27909a
fs/xfs/linux-2.6/xfs_fs_subr.c - 1.48 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_fs_subr.c.diff?r1=text&tr1=1.48&r2=text&tr2=1.47&f=h
	- Convert truncate_inode_pages to invalidate_inode_pages2_range
	  so that page table mappings are removed before we remove the
	  pages from the page cache.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-11  6:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-11  6:23 TAKE 960028 - XFS tripping bug in cancel_dirty_pages in 2.6.20-rc3 David Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox