Re: Disk spin-up optimization during system resume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 17 Jan 2014, Dan Williams wrote:

> I think it's a bit of an interface surprise to have pm_runtime disable
> have side effects only for scsi_disk devices.  I think lazy_resume
> needs to be an explicit attribute of the disk.  For ata devices any
> command wakes up the drive.  Perhaps we could simply do the same for
> scsi devices.  In lazy_resume mode flag the device as "needs spinup"
> at sd_resume time and schedule it when a command arrives.

What you have just described is essentially what runtime PM does.  
There's no need to implement it any other way.  And this explains why 
disabling runtime PM would also disable lazy resume.

Alan Stern

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




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux