linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Francesco Pretto <ceztko@gmail.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH] libata: track spindown status and skip spindown_compat if possible
Date: Tue, 15 May 2007 14:03:12 +0200	[thread overview]
Message-ID: <4649A180.1050100@gmail.com> (raw)
In-Reply-To: <loom.20070515T133840-438@post.gmane.org>

Francesco Pretto wrote:
> Tejun Heo <htejun <at> gmail.com> writes:
>> Our assumption that most distros issue STANDBYNOW seems wrong.  The
>> upstream sysvinit and thus many distros including gentoo and opensuse
>> don't take any action for libata disks on spindown.  We can skip
>> compat handling for these distros so that they don't need to update
>> anything to take advantage of kernel-side shutdown.
>>
> 
> Working around the workaround won't make confusion? Won't this break again
> implementations that was actually issuing STANDBYNOW, assuming that they
> actually exist? Only wondering, can't say for any init implementation in
> particular.

Yeah, it's a big mess.  With this patch applied, what happens is...

* If your shutdown(8) does issue STANDBYNOW : you get the big fat
warning and kernel won't issue STANDBYNOW.

* If your shutdown(8) doesn't issue STANDBYNOW : kernel issues FLUSH
CACHE followed by STANDBYNOW and all is well and dandy without any
userland modification.

I think it isn't too bad.  Any better ideas?

-- 
tejun

  reply	other threads:[~2007-05-15 12:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-15 10:29 [PATCH] libata: track spindown status and skip spindown_compat if possible Tejun Heo
2007-05-15 11:53 ` Francesco Pretto
2007-05-15 12:03   ` Tejun Heo [this message]
2007-05-15 12:12     ` Stephen Clark
2007-05-15 12:17       ` Tejun Heo
2007-05-15 16:44     ` Francesco Pretto
2007-05-16  5:22 ` Jeff Garzik

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=4649A180.1050100@gmail.com \
    --to=htejun@gmail.com \
    --cc=ceztko@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).