aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/isci/remote_node_context.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2011-05-12 08:26:56 -0700
committerDan Williams <dan.j.williams@intel.com>2011-07-03 04:04:49 -0700
commitc845ae96bcb1625a093003248ffaf13b92a81ac2 (patch)
treeeb9a026332b5770783f1f92f7ab72db51b367d73 /drivers/scsi/isci/remote_node_context.h
parent338e386d12c2440e39c987d35fda403d319a79a0 (diff)
isci: unify rnc destruct handlers
Unify rnc destruct handlers and delete the state handler. Reported-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/remote_node_context.h')
-rw-r--r--drivers/scsi/isci/remote_node_context.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/scsi/isci/remote_node_context.h b/drivers/scsi/isci/remote_node_context.h
index fb93f09d4df..1cd32343829 100644
--- a/drivers/scsi/isci/remote_node_context.h
+++ b/drivers/scsi/isci/remote_node_context.h
@@ -104,12 +104,6 @@ typedef enum sci_status (*scic_sds_remote_node_context_io_request)(
struct scic_sds_remote_node_context_handlers {
/**
- * This handle is invoked to stop the RNC. The callback is invoked when after
- * the hardware notification that the RNC has been invalidated.
- */
- scic_sds_remote_node_context_operation destruct_handler;
-
- /**
* This handler is invoked when there is a request to suspend the RNC. The
* callback is invoked after the hardware notification that the remote node is
* suspended.
@@ -260,19 +254,18 @@ bool scic_sds_remote_node_context_is_ready(
#define scic_sds_remote_node_context_get_remote_node_index(rcn) \
((rnc)->remote_node_index)
-
enum sci_status scic_sds_remote_node_context_event_handler(struct scic_sds_remote_node_context *sci_rnc,
u32 event_code);
+enum sci_status scic_sds_remote_node_context_destruct(struct scic_sds_remote_node_context *sci_rnc,
+ scics_sds_remote_node_context_callback callback,
+ void *callback_parameter);
#define scic_sds_remote_node_context_resume(rnc, callback, parameter) \
((rnc)->state_handlers->resume_handler(rnc, callback, parameter))
#define scic_sds_remote_node_context_suspend(rnc, suspend_type, callback, parameter) \
((rnc)->state_handlers->suspend_handler(rnc, suspend_type, callback, parameter))
-#define scic_sds_remote_node_context_destruct(rnc, callback, parameter) \
- ((rnc)->state_handlers->destruct_handler(rnc, callback, parameter))
-
#define scic_sds_remote_node_context_start_io(rnc, request) \
((rnc)->state_handlers->start_io_handler(rnc, request))