From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Lu Subject: Re: [PATCH v6 4/4] sd: change to auto suspend mode Date: Mon, 07 Jan 2013 17:31:40 +0800 Message-ID: <50EA95FC.2020103@intel.com> References: <1357461697-4219-1-git-send-email-aaron.lu@intel.com> <1357461697-4219-5-git-send-email-aaron.lu@intel.com> <2040976.slu5Ii8g67@linux-5eaq.site> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mga09.intel.com ([134.134.136.24]:54516 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751087Ab3AGJbB (ORCPT ); Mon, 7 Jan 2013 04:31:01 -0500 In-Reply-To: <2040976.slu5Ii8g67@linux-5eaq.site> Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Oliver Neukum Cc: Alan Stern , Jens Axboe , "Rafael J. Wysocki" , James Bottomley , linux-pm@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Aaron Lu , Shane Huang On 01/07/2013 05:19 PM, Oliver Neukum wrote: > On Sunday 06 January 2013 16:41:37 Aaron Lu wrote: >> From: Lin Ming >> >> Uses block layer runtime pm helper functions in >> scsi_runtime_suspend/resume. >> Remove scsi_autopm_* from sd open/release path and check_events path. >> And remove the quiesce call in runtime suspend path, as we know there is >> no request to quiesce for the device. > > How does this handle ioctl() ? The ioctl code will allocate a new request and execute it through block layer API, which involves adding the request to the queue and releasing it when it is finished. Thanks, Aaron