Re: [PATCH 2/4] AFS: Add a function to excise a rejected write from the pagecache
- From: David Howells <dhowells@xxxxxxxxxx>
- Date: Thu, 24 May 2007 23:34:33 +0100
Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
So my reason for asking the above is to try to find a way to make all these
new PG-error games just go away.
Yeah. However, there needs to be something to cover the gap between releasing
PG_writeback and getting PG_lock. They have to be done in that order to avoid
deadlocking against truncate and other stuff, but that leaves a window in which
the page appears to be in a good state - one in which prepare_write() or
page_mkwrite() can potentially leak through.
Nick Piggin talked about using an extra lock, but as far as I can tell, that
just compounds the deadlock problems.
I suppose I could leave something in page->private that indicated that the
page was defunct, but that'd have to be done by the filesystem, probably
before calling cancel_rejected_write().
David
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 2/4] AFS: Add a function to excise a rejected write from the pagecache
- From: David Howells
- Re: [PATCH 2/4] AFS: Add a function to excise a rejected write from the pagecache
- From: Andrew Morton
- Re: [PATCH 2/4] AFS: Add a function to excise a rejected write from the pagecache
- References:
- Re: [PATCH 2/4] AFS: Add a function to excise a rejected write from the pagecache
- From: Andrew Morton
- Re: [PATCH 2/4] AFS: Add a function to excise a rejected write from the pagecache
- From: Andrew Morton
- [PATCH 1/4] AFS: Add TestSetPageError()
- From: David Howells
- [PATCH 2/4] AFS: Add a function to excise a rejected write from the pagecache
- From: David Howells
- Re: [PATCH 2/4] AFS: Add a function to excise a rejected write from the pagecache
- From: David Howells
- Re: [PATCH 2/4] AFS: Add a function to excise a rejected write from the pagecache
- Prev by Date: Re: PCIE
- Next by Date: Re: 2.6.22-rc2-mm1
- Previous by thread: Re: [PATCH 2/4] AFS: Add a function to excise a rejected write from the pagecache
- Next by thread: Re: [PATCH 2/4] AFS: Add a function to excise a rejected write from the pagecache
- Index(es):