aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/request.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2011-06-17 16:34:43 -0400
committerDan Williams <dan.j.williams@intel.com>2011-07-03 07:04:51 -0400
commitff60639dc9a461883db9192d2da0674a00339f12 (patch)
tree5d4e8b51ae522b89240e332054f031cee4515c87 /drivers/scsi/isci/request.c
parentf2088267514b39af1a94409168101527769a911c (diff)
isci: kill device_sequence
Now that we have upleveled device reassignment protection to the isci_remote_device reference count we no longer need this level of self-defense. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/request.c')
-rw-r--r--drivers/scsi/isci/request.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/scsi/isci/request.c b/drivers/scsi/isci/request.c
index fd6314abeb0b..ebe160c83f91 100644
--- a/drivers/scsi/isci/request.c
+++ b/drivers/scsi/isci/request.c
@@ -753,10 +753,6 @@ enum sci_status scic_sds_request_start(struct scic_sds_request *sci_req)
753 struct scu_task_context *task_context; 753 struct scu_task_context *task_context;
754 enum sci_base_request_states state; 754 enum sci_base_request_states state;
755 755
756 if (sci_req->device_sequence !=
757 scic_sds_remote_device_get_sequence(sci_req->target_device))
758 return SCI_FAILURE;
759
760 state = sci_req->sm.current_state_id; 756 state = sci_req->sm.current_state_id;
761 if (state != SCI_REQ_CONSTRUCTED) { 757 if (state != SCI_REQ_CONSTRUCTED) {
762 dev_warn(scic_to_dev(scic), 758 dev_warn(scic_to_dev(scic),
@@ -3112,7 +3108,6 @@ scic_sds_general_request_construct(struct scic_sds_controller *scic,
3112 sci_req->target_device = sci_dev; 3108 sci_req->target_device = sci_dev;
3113 sci_req->protocol = SCIC_NO_PROTOCOL; 3109 sci_req->protocol = SCIC_NO_PROTOCOL;
3114 sci_req->saved_rx_frame_index = SCU_INVALID_FRAME_INDEX; 3110 sci_req->saved_rx_frame_index = SCU_INVALID_FRAME_INDEX;
3115 sci_req->device_sequence = scic_sds_remote_device_get_sequence(sci_dev);
3116 3111
3117 sci_req->sci_status = SCI_SUCCESS; 3112 sci_req->sci_status = SCI_SUCCESS;
3118 sci_req->scu_status = 0; 3113 sci_req->scu_status = 0;