diff options
author | Lin Ming <ming.m.lin@intel.com> | 2011-12-05 05:20:24 +0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-01-09 04:14:57 +0400 |
commit | ae0751ffc77e7f21629970fdab5528c573e637f8 (patch) | |
tree | e42ad3d5a5d2c5b742c6b129fd3bb532f29389f7 /include/scsi | |
parent | 9a6d6a2ddabbd32c07f6a38b659e5f3db319fa5a (diff) | |
download | linux-ae0751ffc77e7f21629970fdab5528c573e637f8.tar.xz |
[SCSI] add flag to skip the runtime PM calls on the host
With previous change, now the ata port runtime suspend will happen as:
disk suspend --> scsi target suspend --> scsi host suspend --> ata port
suspend
ata port(parent device) suspend need to schedule scsi EH which will resume
scsi host(child device). Then the child device resume will in turn make
parent device resume first. This is kind of recursive.
This patch adds a new flag Scsi_Host::eh_noresume.
ata port will set this flag to skip the runtime PM calls on scsi host.
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/scsi_host.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index 50266c9405fc..5f7d5b3b1c6e 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h @@ -669,6 +669,9 @@ struct Scsi_Host { /* Asynchronous scan in progress */ unsigned async_scan:1; + /* Don't resume host in EH */ + unsigned eh_noresume:1; + /* * Optional work queue to be utilized by the transport */ |