From: Douglas Gilbert <dougg@torque.net>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Oliver Neukum <oliver@neukum.name>,
SCSI development list <linux-scsi@vger.kernel.org>
Subject: Re: SCSI dynamic power management
Date: Tue, 20 Nov 2007 09:38:09 -0500 [thread overview]
Message-ID: <4742F151.9020602@torque.net> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0711191028400.4806-100000@iolanthe.rowland.org>
Alan Stern wrote:
> Oliver (or anybody else):
>
> Adding dynamic (AKA runtime) power management to the SCSI core is
> looking a little difficult. (Actually, since as far as I know the SCSI
> specification takes no heed of power management, perhaps this should be
> called "idle-device management".)
>
> Imagine a SCSI disk has been idle long enough that we want to spin it
> down. When I/O requests do start to arrive later on, we want to delay
> them in the request queue until the disk has a chance to spin back up.
> Or even to fail them, if the user has done a "manual" suspend.
>
> These are conflicting requirements. How can we send the START-STOP
> UNIT commands to spin the disk up/down through the request queue while
> delaying or failing all others? What happens if one of the
> START-STOP UNIT commands encounters a problem and the error handler
> needs to send some commands of its own?
>
> Any suggestions or ideas are welcome.
There should have always been at least two types of "block":
a) block media access commands
b) block all commands because the transport has told us
(or we know that we are about to remove some component)
that commands cannot be delivered to the device (logical
unit)
For case a) all SCSI commands apart from those that explicitly
access the media (e.g. READ, WRITE, VERIFY) should be sent to
the device. Some commands, such as MODE SENSE, may fail since
they might depend on data held on the media. Such failures
will be fast with appropriate sense_key/asc/ascq codes returned.
IMO if a transport tells us that a SCSI device (i.e. target
device and/or logical unit) is accessible and the SCSI subsystem
stops us sending an INQUIRY to that device then the SCSI
subsystem is broken.
Doug Gilbert
next prev parent reply other threads:[~2007-11-20 14:38 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-19 15:36 SCSI dynamic power management Alan Stern
2007-11-19 15:46 ` Matthew Wilcox
2007-11-19 15:57 ` Alan Stern
2007-11-19 16:14 ` Salyzyn, Mark
2007-11-19 16:46 ` Alan Stern
2007-11-19 16:53 ` James Bottomley
2007-11-19 19:16 ` Alan Stern
2007-11-19 19:18 ` Matthew Wilcox
2007-11-19 19:48 ` Alan Stern
2007-11-20 14:53 ` James Bottomley
2007-11-20 15:07 ` Oliver Neukum
2007-11-20 15:21 ` James Bottomley
2007-11-20 15:36 ` Oliver Neukum
2007-11-20 15:42 ` James Bottomley
2007-11-20 16:02 ` Alan Stern
2007-11-20 16:15 ` James Bottomley
2007-11-20 19:03 ` Alan Stern
2007-11-21 12:56 ` Jens Axboe
2007-11-20 14:38 ` Douglas Gilbert [this message]
2007-11-20 15:49 ` Alan Stern
[not found] <4741AFEA.8000408@emulex.com>
2007-11-19 16:00 ` Alan Stern
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=4742F151.9020602@torque.net \
--to=dougg@torque.net \
--cc=linux-scsi@vger.kernel.org \
--cc=oliver@neukum.name \
--cc=stern@rowland.harvard.edu \
/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).