public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Oliver Neukum <oliver@neukum.org>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: SCSI development list <linux-scsi@vger.kernel.org>,
	Linux-pm mailing list <linux-pm@lists.linux-foundation.org>
Subject: Re: [RFC] Implementation of SCSI dynamic power management
Date: Tue, 8 Jan 2008 16:18:06 +0100	[thread overview]
Message-ID: <200801081618.07067.oliver@neukum.org> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0801081006580.2643-100000@iolanthe.rowland.org>

Am Dienstag, 8. Januar 2008 16:12:52 schrieb Alan Stern:
> On Tue, 8 Jan 2008, Oliver Neukum wrote:
> 
> > Am Montag, 7. Januar 2008 20:42:23 schrieb Alan Stern:
> > >  /**
> > > + *     autoresume - perform dynamic (runtime) host resume
> > > + *     @shp: host to resume
> > > + *
> > > + *     Resume (return to an operational power level) the specified host.
> > > + *     Return 0 if the resume was successful, otherwise a negative
> > > + *     error code.
> > > + *
> > > + *     Locks: struct Scsi_Host::pm_mutex held throughout the call.
> > > + *
> > > + *     Calling context: process
> > > + *
> > > + *     Notes: If the host is not currently suspended, this method does
> > > + *     need to do anything.
> > > + *
> > > + *     Optionally defined in: LLD
> > > + **/
> > > +    int autoresume(struct Scsi_Host *shp)
> > > +
> > 
> > This seems to be a bit misleading. It seems to me that you must cancel
> > any outstanding request to autosuspend from other layers.
> 
> How about something more like this:
> 
> *	Resume (return to an operational power level) the specified host,
> *	and prevent autosuspends from other software layers until the
> *	template autosuspend method has been called again.
> *	Return 0 if the resume was successful, otherwise a negative
> *	error code.

Much better.

	Regards
		Oliver


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2008-01-08 15:17 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-07 19:42 [RFC] Implementation of SCSI dynamic power management Alan Stern
2008-01-07 20:31 ` Oliver Neukum
2008-01-07 21:34   ` Alan Stern
2008-01-07 22:06     ` Oliver Neukum
2008-01-08  3:56       ` Alan Stern
2008-01-08 13:42         ` Oliver Neukum
2008-01-08 15:06           ` Alan Stern
2008-01-08 15:10             ` Oliver Neukum
2008-01-08 21:24     ` [linux-pm] " Pavel Machek
2008-01-09 15:25       ` Alan Stern
2008-01-08 14:12 ` Oliver Neukum
2008-01-08 15:12   ` Alan Stern
2008-01-08 15:18     ` Oliver Neukum [this message]
2008-01-08 18:06     ` Stefan Richter
2008-01-08 18:51       ` Alan Stern
2008-01-08 15:00 ` Oliver Neukum
2008-01-08 15:16   ` Alan Stern
2008-01-08 15:30     ` Oliver Neukum
2008-01-09 16:11 ` Oliver Neukum
2008-01-09 17:22   ` Alan Stern
2008-01-09 17:31     ` Oliver Neukum
2008-01-09 20:36       ` Alan Stern
2008-01-10  9:26         ` Oliver Neukum

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=200801081618.07067.oliver@neukum.org \
    --to=oliver@neukum.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=linux-scsi@vger.kernel.org \
    --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