aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_priv.h
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2012-05-18 00:56:57 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-07-20 03:58:22 -0400
commit5d9fb5cc1b88277bb28a2a54e51b34cacaa123c2 (patch)
tree9067ba87ee1455850d97984608daa717f381e0d8 /drivers/scsi/scsi_priv.h
parent1b8d26206134458044b0689f48194af00c96d406 (diff)
[SCSI] core, classes, mpt2sas: have scsi_internal_device_unblock take new state
This has scsi_internal_device_unblock/scsi_target_unblock take the new state to set the devices as an argument instead of always setting to running. The patch also converts users of these functions. This allows the FC and iSCSI class to transition devices from blocked to transport-offline, so that when fast_io_fail/replacement_timeout has fired we do not set the devices back to running. Instead, we set them to SDEV_TRANSPORT_OFFLINE. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/scsi_priv.h')
-rw-r--r--drivers/scsi/scsi_priv.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h
index 07ce3f51701d..cbfe5df24a3b 100644
--- a/drivers/scsi/scsi_priv.h
+++ b/drivers/scsi/scsi_priv.h
@@ -2,6 +2,7 @@
2#define _SCSI_PRIV_H 2#define _SCSI_PRIV_H
3 3
4#include <linux/device.h> 4#include <linux/device.h>
5#include <scsi/scsi_device.h>
5 6
6struct request_queue; 7struct request_queue;
7struct request; 8struct request;
@@ -172,6 +173,7 @@ extern struct list_head scsi_sd_probe_domain;
172 173
173#define SCSI_DEVICE_BLOCK_MAX_TIMEOUT 600 /* units in seconds */ 174#define SCSI_DEVICE_BLOCK_MAX_TIMEOUT 600 /* units in seconds */
174extern int scsi_internal_device_block(struct scsi_device *sdev); 175extern int scsi_internal_device_block(struct scsi_device *sdev);
175extern int scsi_internal_device_unblock(struct scsi_device *sdev); 176extern int scsi_internal_device_unblock(struct scsi_device *sdev,
177 enum scsi_device_state new_state);
176 178
177#endif /* _SCSI_PRIV_H */ 179#endif /* _SCSI_PRIV_H */