aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/request.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2011-05-11 11:27:47 -0400
committerDan Williams <dan.j.williams@intel.com>2011-07-03 07:04:48 -0400
commita7e255a34220ba57eeeb75637c911974e54c08e7 (patch)
tree5f40bcae968de741393d4ad5c7d16b80d8d1408b /drivers/scsi/isci/request.h
parentd1c637c35b33ddd2b405956e04b50939bb10ed2a (diff)
isci: remove request task context completion state handler
Unlike the other conversions this only updates scic_sds_io_request_tc_completion() to call the old state handlers directly (with less verbose names). This was done for future patch readability, the implementations have only minor differences for different completion codes. Without a reference to the function name it would be difficult to dicern which state is being updated. Considered changing the order to look up the completion code before the state but that was not a clean conversion either. Reported-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/request.h')
-rw-r--r--drivers/scsi/isci/request.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/isci/request.h b/drivers/scsi/isci/request.h
index c9070e708948..e13ca3f7c8d7 100644
--- a/drivers/scsi/isci/request.h
+++ b/drivers/scsi/isci/request.h
@@ -426,8 +426,6 @@ typedef enum sci_status (*scic_sds_io_request_handler_t)
426 (struct scic_sds_request *request); 426 (struct scic_sds_request *request);
427typedef enum sci_status (*scic_sds_io_request_event_handler_t) 427typedef enum sci_status (*scic_sds_io_request_event_handler_t)
428 (struct scic_sds_request *req, u32 event); 428 (struct scic_sds_request *req, u32 event);
429typedef enum sci_status (*scic_sds_io_request_task_completion_handler_t)
430 (struct scic_sds_request *req, u32 completion_code);
431 429
432/** 430/**
433 * struct scic_sds_io_request_state_handler - This is the SDS core definition 431 * struct scic_sds_io_request_state_handler - This is the SDS core definition
@@ -442,7 +440,6 @@ struct scic_sds_io_request_state_handler {
442 */ 440 */
443 scic_sds_io_request_handler_t complete_handler; 441 scic_sds_io_request_handler_t complete_handler;
444 442
445 scic_sds_io_request_task_completion_handler_t tc_completion_handler;
446 scic_sds_io_request_event_handler_t event_handler; 443 scic_sds_io_request_event_handler_t event_handler;
447}; 444};
448 445