[Top] [All Lists]

Re: Problem with file system on iSCSI FileIO

To: Richard Sharpe <realrichardsharpe@xxxxxxxxx>
Subject: Re: Problem with file system on iSCSI FileIO
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Sat, 25 Sep 2010 13:01:03 -0400
Cc: Christoph Hellwig <hch@xxxxxxxxxxxxx>, Slawomir Nowakowski <slawomir.nowakowski@xxxxxxxxxx>, xfs@xxxxxxxxxxx
In-reply-to: <AANLkTik=wkAkbexmO+4WCCT2pusRu-DTq1=yNwv9V5f0@xxxxxxxxxxxxxx>
References: <4C9B5786.4010205@xxxxxxxxxx> <20100923143221.GA1989@xxxxxxxxxxxxx> <4C9B6B27.5050606@xxxxxxxxxx> <20100924075505.GA24664@xxxxxxxxxxxxx> <4C9C875D.9050308@xxxxxxxxxx> <20100925155611.GA21928@xxxxxxxxxxxxx> <AANLkTik=wkAkbexmO+4WCCT2pusRu-DTq1=yNwv9V5f0@xxxxxxxxxxxxxx>
User-agent: Mutt/1.5.20 (2009-08-17)
On Sat, Sep 25, 2010 at 09:54:46AM -0700, Richard Sharpe wrote:
> fileio uses submit_bio to submit the data and it defaults to
> WRITE_THROUGH, NV_CACHE and DIRECT_IO (at least in the trunk, but I
> suspect this has been the case for a long while) however, the person
> making the complaint might have switched off WRITE_THROUGH in the
> pursuit of performance, in which case a crash could corrupt things
> badly but it would depend on whether or not clearing WRITE_THROUGH
> also clears NV_CACHE and what the code assembling the caching mode
> page does (and I have only had a cursory glance at the vdisk code).

If the target uses submit_bio for logical files inside a filesystems
there are hundreds of ways to get exactly the corruption that Slawomir
sees.  How does it obtain the logical to physical mapping?  What locking
does it use agains other access to the file?

<Prev in Thread] Current Thread [Next in Thread>