Re: [linux-pm] [RFC] Deferred disk spinup during system resume

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tejun Heo
Date: Friday, December 31, 2010 - 4:27 am

On Thu, Dec 30, 2010 at 04:49:29PM -0800, Maksim Rayskiy wrote:

Yeah, it was asynchronous for a while when suspend/resume were
implemented in libata proper.  It's a bit trickier to do that with sd
doing the higher level part.  Hmmm... most SATA disks spin up
automatically anyway so disabling START_STOP from sd should do the
trick.  Does the following achieve async resume?

 echo 0 > /sys/block/sdX/device/scsi_disk/h:c:i:l/manage_start_stop

The problem is that the above would also prevent the kernel from
issuing STANDBY_NOW on suspend or power down.  Maybe we should just
make start_stop_xlat schedule async EH action instead.

Thanks.

-- 
tejun
--
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] Deferred disk spinup during system resume, Maksim Rayskiy, (Thu Dec 30, 12:40 pm)
Re: [linux-pm] [RFC] Deferred disk spinup during system resume, Rafael J. Wysocki, (Thu Dec 30, 3:46 pm)
Re: [linux-pm] [RFC] Deferred disk spinup during system resume, Tejun Heo, (Fri Dec 31, 4:27 am)