From: Tejun Heo <tj@kernel.org>
To: Dan Williams <dan.j.williams@intel.com>
Cc: JBottomley@Parallels.com, Phillip Susi <psusi@ubuntu.com>,
Todd Brandt <todd.e.brandt@intel.com>,
Alan Stern <stern@rowland.harvard.edu>,
linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org
Subject: Re: [PATCH v6 1/3] libata, libsas: kill pm_result and related cleanup
Date: Tue, 18 Mar 2014 12:03:56 -0400 [thread overview]
Message-ID: <20140318160356.GC3642@htj.dyndns.org> (raw)
In-Reply-To: <20140314205248.1269.33730.stgit@viggo.jf.intel.com>
On Fri, Mar 14, 2014 at 01:52:48PM -0700, Dan Williams wrote:
> Tejun says:
> "At least for libata, worrying about suspend/resume failures don't make
> whole lot of sense. If suspend failed, just proceed with suspend. If
> the device can't be woken up afterwards, that's that. There isn't
> anything we could have done differently anyway. The same for resume, if
> spinup fails, the device is dud and the following commands will invoke
> EH actions and will eventually fail. Again, there really isn't any
> *choice* to make. Just making sure the errors are handled gracefully
> (ie. don't crash) and the following commands are handled correctly
> should be enough."
>
> The only libata user that actually cares about the result from a suspend
> operation is libsas. However, it only cares about whether queuing a new
> operation collides with an in-flight one. All libsas does with the
> error is retry, but we can just let libata wait for the previous
> operation before continuing.
>
> Other cleanups include:
> 1/ Unifying all ata port pm operations on an ata_port_pm_ prefix
> 2/ Marking all ata port pm helper routines as returning void, only
> ata_port_pm_ entry points need to fake a 0 return value.
> 3/ Killing ata_port_{suspend|resume}_common() in favor of calling
> ata_port_request_pm() directly
> 4/ Killing the wrappers that just do a to_ata_port() conversion
> 5/ Clearly marking the entry points that do async operations with an
> _async suffix.
>
> Reference: http://marc.info/?l=linux-scsi&m=138995409532286&w=2
>
> Cc: Phillip Susi <psusi@ubuntu.com>
> Cc: Alan Stern <stern@rowland.harvard.edu>
> Suggested-by: Tejun Heo <tj@kernel.org>
> Signed-off-by: Todd Brandt <todd.e.brandt@intel.com>
> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Can somebody ack the sas part?
Thanks.
--
tejun
next prev parent reply other threads:[~2014-03-18 16:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-14 20:52 [PATCH v6 0/3] Accelerate Storage Resume (2x or more) Dan Williams
2014-03-14 20:52 ` [PATCH v6 1/3] libata, libsas: kill pm_result and related cleanup Dan Williams
2014-03-18 16:03 ` Tejun Heo [this message]
2014-03-18 16:48 ` Dan Williams
2014-03-18 20:18 ` Tejun Heo
2014-03-14 20:52 ` [PATCH v6 2/3] libata: async resume Dan Williams
2014-03-14 20:52 ` [PATCH v6 3/3] scsi: async sd resume Dan Williams
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=20140318160356.GC3642@htj.dyndns.org \
--to=tj@kernel.org \
--cc=JBottomley@Parallels.com \
--cc=dan.j.williams@intel.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=psusi@ubuntu.com \
--cc=stern@rowland.harvard.edu \
--cc=todd.e.brandt@intel.com \
/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