Patch added to scsi-misc-2.6: [SCSI] implement runtime Power Management
Quoted 9 lines · James Bottomley
Your commit:
[SCSI] implement runtime Power Management
This patch (as1398b) adds runtime PM support to the SCSI layer. Only the machanism is provided; use of it is up to the various high-level drivers, and the patch doesn't change any of them. Except for sg -- the patch expicitly prevents a device from being runtime-suspended while its sg device file is open.
...
Quoted 6 lines
has been added to the upstream SCSI tree
You can find it here:This patch is scheduled to be pushed when the merge window opens for 2.6.36
James:
You haven't applied the 7-part patch series submitted here
http://marc.info/?l=linux-scsi&m=127551093014580&w=2
and in the following emails. For the most part it doesn't matter; those patches are pretty trivial clean-ups. However it does matter in one regard: The 6/7 patch in that series interacts with this commit here. The logic for setting the task state in scsi_error_handler() was simplified, and without that change this implement-runtime-power-management patch leaves the state set wrong.
This is a potential bug. Of course, my preference is for those seven patches to be accepted. But if you prefer, you could simply add a line setting the state to TASK_INTERRUPTIBLE before the "continue" statement added here.
Alan Stern