| To: | David Chinner <dgc@xxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 1/2]: Fix BUG in cancel_dirty_pages on XFS |
| From: | Nick Piggin <nickpiggin@xxxxxxxxxxxx> |
| Date: | Thu, 25 Jan 2007 13:01:09 +1100 |
| Cc: | Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx, akpm@xxxxxxxx |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.au; h=Received:X-YMail-OSG:Message-ID:Date:From:User-Agent:X-Accept-Language:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=TZgO3pupe1MQVVE88rJ/UzTlIa+LCIRpCNlrE7pa02IPnaV7up8xmGdn81SAf5xqXUheIOh1rX/gg+WETb2jloarRsJZz/XQRCVrbF8WhnVsGkT0Z7ImZHe/Lr16S8IGmtRGyoI1zRFGTA3u4go8gNhHVaAU5nH6Cw85Lrf2n3E= ; |
| In-reply-to: | <20070125015204.GV33919298@melbourne.sgi.com> |
| References: | <20070123223702.GF33919298@melbourne.sgi.com> <1169640835.6189.14.camel@twins> <45B7627B.8050202@yahoo.com.au> <20070124224654.GN33919298@melbourne.sgi.com> <45B7F5F9.2070308@yahoo.com.au> <20070125003536.GS33919298@melbourne.sgi.com> <45B7FE1C.3070807@yahoo.com.au> <20070125015204.GV33919298@melbourne.sgi.com> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051007 Debian/1.7.12-1 |
David Chinner wrote:
On Thu, Jan 25, 2007 at 11:47:24AM +1100, Nick Piggin wrote:
IOWs, at a single point in time we have 2 different views of the one file which are both apparently valid and that is what we are trying to avoid. We have a coherency problem here which is solved by forcing the mmap write to reread the data off disk....
Look at it this way - direct I/O in XFS implies an I/O barrier (similar to a memory barrier). Writing back and tossing out of the page cache at the start of the direct IO gives us an I/O coherency barrier - everything before the direct IO is sync'd to disk before the direct IO can proceed, and everything after the direct IO has started must be fetched from disk again.
-- SUSE Labs, Novell Inc. Send instant messages to your online friends http://au.messenger.yahoo.com |
| Previous by Date: | Re: [PATCH 1/2]: Fix BUG in cancel_dirty_pages on XFS, David Chinner |
|---|---|
| Next by Date: | Re: [PATCH 1/2]: Fix BUG in cancel_dirty_pages on XFS, David Chinner |
| Previous by Thread: | Re: [PATCH 1/2]: Fix BUG in cancel_dirty_pages on XFS, David Chinner |
| Next by Thread: | Re: [PATCH 1/2]: Fix BUG in cancel_dirty_pages on XFS, David Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |