linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: James Bottomley <James.Bottomley@SteelEye.com>
Cc: "Darrick J. Wong" <djwong@us.ibm.com>,
	Jeff Garzik <jgarzik@pobox.com>,
	hmh@hmh.eng.br, linux-ide@vger.kernel.org,
	linux-scsi@vger.kernel.org
Subject: Re: [PATCH] sd: implement stop_on_shutdown
Date: Mon, 05 Feb 2007 18:43:33 +0900	[thread overview]
Message-ID: <45C6FC45.4050603@gmail.com> (raw)
In-Reply-To: <1169303969.2842.10.camel@mulgrave.il.steeleye.com>

James Bottomley wrote:
> There are practical problems to handling this in sd, namely that the
> power handling commands and state model are part of the ATA command set,
> not part of the SCSI command set.  SAT really only covers the basics of
> mapping the different power management models.

I see.  I think what's currently described in SAT-r09 is enough for most
cases this is necessary - ATA and USB disks.

> However, I suppose if we're going to allow stop on shutdown, it does
> make sense to use it on suspend as well.

Yeah, it does.  Issuing STOP on suspend and START (possibly with
IMMED=1) on resume should do the trick.  libata currently does this
using sht->resume/suspend callbacks but it fits much better in sd in
that it's also useful for other SCSI disks.

James, do you think such change to sd is acceptable?  As the original
patch, the default behavior won't be changed, so unless specifically
configured (probably during boot by dist) there won't be any behavior
change.

Thanks.

-- 
tejun

  reply	other threads:[~2007-02-05  9:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-19 17:01 [PATCH] sd: implement stop_on_shutdown Tejun Heo
2007-01-19 23:34 ` Douglas Gilbert
2007-01-20  3:18   ` Tejun Heo
2007-01-21 22:47     ` Stefan Richter
2007-01-19 23:42 ` Darrick J. Wong
2007-01-20  3:22   ` Tejun Heo
2007-01-20  9:50     ` Jeff Garzik
2007-01-20  9:59       ` Tejun Heo
2007-01-20 14:39       ` James Bottomley
2007-01-20 14:39     ` James Bottomley
2007-02-05  9:43       ` Tejun Heo [this message]
2007-02-05 14:55         ` James Bottomley

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=45C6FC45.4050603@gmail.com \
    --to=htejun@gmail.com \
    --cc=James.Bottomley@SteelEye.com \
    --cc=djwong@us.ibm.com \
    --cc=hmh@hmh.eng.br \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-scsi@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).