xfs
[Top] [All Lists]

Re: Problem with file system on iSCSI FileIO

To: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Subject: Re: Problem with file system on iSCSI FileIO
From: Richard Sharpe <realrichardsharpe@xxxxxxxxx>
Date: Sat, 25 Sep 2010 10:14:05 -0700
Cc: Slawomir Nowakowski <slawomir.nowakowski@xxxxxxxxxx>, xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=CkleeE0P7PhqYqPiYh/OF2HLb0HT8Hr/UfnntQXwRFc=; b=ed77bMYbvSWfSSdXrdj8Yzpr1YiEGz3cwf4tcLkLlf8Z8xuxrWmDbFvieRohwUpXAz cKJiED2lakZKzFBTPMj2up6r5+6yzhSBemz9IqTwITH28kDJe/LicTPyYN6+OHtgt4cB RuSswanubqIEB2vZb0OuwlTKtseTkfY3wxvKM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=JVQ7qlWS6u48IgbmbbFiIWAh4OVDgtIt9npJaFZB2Yvauy5dO4P0nJWvYey9LnyQyz uO/VKltm9VeGh4yT9ccRpq+RH9wC4B3z3DX9vDRciERtC4VI9qjcfhZP8UEEzLrpyq9h z3HIUiXw2mQZP1paOqV15BPDTugi0frdWudIM=
In-reply-to: <20100925170103.GA2422@xxxxxxxxxxxxx>
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> <20100925170103.GA2422@xxxxxxxxxxxxx>
On Sat, Sep 25, 2010 at 10:01 AM, Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
> 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?

Actually, I was wrong. for fileio it does vfs_writev. I started
wondering the same questions and went back through the code and
noticed that I had missed a test.

We really need to know what parameters the person making the complaint
is using, and the version of SCST.

In addition, I don't understand when this corruption occurred ...

It really might be a case of don't do that.

-- 
Regards,
Richard Sharpe

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