Re: [PATCH 09/12] libata: implement powersave timer

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

 



Tejun Heo wrote:
Implement powersave timer.  It is primarily for OS-driven HIPS
implementation but can be used for any other PS purpose LLD sees fit.
During normal operation, PS timer is automatically started with
timeout ap->ps_timeout on port idle and stopped when the port becomes
busy.  The timer is also stopped while EH.

To minimize overhead and allow easy implementation of expected
operation model, ata_ps_timer_worker() is used as timer callback which
invokes LLD supplied ap->ps_timer_fn() if condition meets and also
helps implementing sequenced multi-step operation.

Signed-off-by: Tejun Heo <htejun@xxxxxxxxx>

This makes me wonder what Jens thinks about having a device idle timer and callback at the block level? At the very least, this feels like it should be implemented in the SCSI layer, or somewhere other than libata.

This is NOT a NAK, however. The code looks OK, and if consensus is against doing this sort of thing in block or SCSI, then I'm OK with the current patch.

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

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux