[SCSI] sd: use REQ_PM in sd's runtime suspend operation
authorLin Ming <ming.m.lin@intel.com>
Sat, 23 Mar 2013 03:42:25 +0000 (11:42 +0800)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 6 May 2013 19:48:17 +0000 (12:48 -0700)
commit9b21493c4520970f8f404e0265f48e37f9cffaf5
tree52192b0d2521ad8cba45bc081a279e8d746dfb27
parentb8d4a5bf6a049303a29a3275f463f09a490b50ea
[SCSI] sd: use REQ_PM in sd's runtime suspend operation

With the introduction of REQ_PM, modify sd's runtime suspend operation
functions to use that flag so that the operations to put the device into
runtime suspended state(i.e. sync cache and stop device) will not affect
its runtime PM status.

Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi_lib.c
drivers/scsi/sd.c
include/scsi/scsi_device.h