From: Simon Farnsworth <simon.farnsworth@onelan.co.uk>
To: Tejun Heo <htejun@gmail.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: Freeze after disabling write cache with hdparm -W0 /dev/sda
Date: Tue, 17 Jul 2007 09:57:21 +0100 [thread overview]
Message-ID: <469C8471.80104@onelan.co.uk> (raw)
In-Reply-To: <46972DAE.5050503@gmail.com>
Tejun Heo wrote:
> Simon Farnsworth wrote:
>> Tejun Heo wrote:
>>> Simon Farnsworth wrote:
>>>> Tejun Heo wrote:
>>>>> Simon Farnsworth wrote:
>>>>>> Just a thought; is it possible to trigger libata EH from userspace? If
>>>>>> so, we could write a small utility to disable write cache, then force EH
>>>>>> to detect the change.
>>>>> That's automatically done. libata snoops cache on/off and triggers
>>>>> revalidation but you can request manual rescan by echoing "- - -" to
>>>>> /sys/class/scsi_host/hostX/scan.
>>>>>
>>>> Would it be worth changing our code to do "hdparm -W1 /dev/sda && hdparm
>>>> -W0 /dev/sda", or would this not show anything. The lack of revalidation
>>>> on some drives is what's worrying me a little here.
>>> Revalidation happens after cache property is changed successfully. What
>>> happens if you request manual rescan while the drive is not repsponding?
>>>
>> The 30 second freeze happens when we request manual rescan. We do
>> revalidate once the freeze is over, though; dmesg follows:
>
> Can you post dmesg with printk timestamps turned on?
>
Sorry for the delay in responding;
Turning on printk timestamps is enough to fix the problem, and stop the
stall from happening.
We'll be rebasing to the newest Fedora 7 kernel soon (next 3 months),
and I've changed our kernel build process to turn on printk timestamps.
If it still happens then, I'll get you a dmesg with timestamps.
--
Simon Farnsworth
next prev parent reply other threads:[~2007-07-17 8:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-10 10:15 Freeze after disabling write cache with hdparm -W0 /dev/sda Simon Farnsworth
2007-07-11 5:11 ` Tejun Heo
2007-07-11 8:31 ` Simon Farnsworth
2007-07-11 8:36 ` Tejun Heo
2007-07-11 8:54 ` Simon Farnsworth
2007-07-11 8:57 ` Tejun Heo
2007-07-11 12:25 ` Simon Farnsworth
2007-07-13 7:45 ` Tejun Heo
2007-07-17 8:57 ` Simon Farnsworth [this message]
2007-07-11 18:46 ` Mark Lord
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=469C8471.80104@onelan.co.uk \
--to=simon.farnsworth@onelan.co.uk \
--cc=htejun@gmail.com \
--cc=linux-ide@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).