public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* TAKE 964002 - Don't wait for pending I/Os when purging blocks beyond eof.
@ 2007-12-10  5:59 Lachlan McIlroy
  2007-12-11  8:11 ` Christoph Hellwig
  2007-12-11 16:52 ` Bhagi rathi
  0 siblings, 2 replies; 6+ messages in thread
From: Lachlan McIlroy @ 2007-12-10  5:59 UTC (permalink / raw)
  To: sgi.bugs.xfs, xfs

Don't wait for pending I/Os when purging blocks beyond eof.

On last close of a file we purge blocks beyond eof.  The same
code is used when we truncate the file size down.  In this case
we need to wait for any pending I/Os for dirty pages beyond the
new eof.  For the last close case we are not changing the file
size and therefore do not need to wait for any I/Os to complete.
This fixes a performance bottleneck where writes into the page
cache and cache flushes can become mutually exclusive.

Date:  Mon Dec 10 16:59:09 AEDT 2007
Workarea:  redback.melbourne.sgi.com:/home/lachlan/isms/2.6.x-vniowait
Inspected by:  pleckie
Author:  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:30220a
fs/xfs/xfs_inode.c - 1.489 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_inode.c.diff?r1=text&tr1=1.489&r2=text&tr2=1.488&f=h
	- Don't wait for pending I/Os when purging blocks beyond eof.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-12-12  5:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-10  5:59 TAKE 964002 - Don't wait for pending I/Os when purging blocks beyond eof Lachlan McIlroy
2007-12-11  8:11 ` Christoph Hellwig
2007-12-11 23:25   ` David Chinner
2007-12-12  5:13     ` Christoph Hellwig
2007-12-11 16:52 ` Bhagi rathi
2007-12-12  4:04   ` Lachlan McIlroy

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