diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-02-28 03:22:12 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-03-10 17:42:55 -0500 |
commit | c7ec05c82bfd6acf1fd800d628591500805f3179 (patch) | |
tree | c64d5d330120d038f5ee9fe90b7a7eba0a0b3459 /drivers/infiniband | |
parent | 99367f01b8df2018ff3328ddf4111e701d34188d (diff) |
target: Drop unused legacy target_core_fabric_ops API callers
This patch drops the following unused legacy API callers from target_core_fabric.h:
*) TFO->fall_back_to_erl0()
*) TFO->stop_session()
*) TFO->sess_logged_in()
*) TFO->is_state_remove()
This patch also removes the stub usage in loopback, tcm_fc, iscsi_target,
and ib_srpt fabric modules.
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/ulp/srpt/ib_srpt.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index 3290a57b248e..6735b63d96f0 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c | |||
@@ -3521,25 +3521,6 @@ static void srpt_close_session(struct se_session *se_sess) | |||
3521 | } | 3521 | } |
3522 | 3522 | ||
3523 | /** | 3523 | /** |
3524 | * To do: Find out whether stop_session() has a meaning for transports | ||
3525 | * other than iSCSI. | ||
3526 | */ | ||
3527 | static void srpt_stop_session(struct se_session *se_sess, int sess_sleep, | ||
3528 | int conn_sleep) | ||
3529 | { | ||
3530 | } | ||
3531 | |||
3532 | static void srpt_reset_nexus(struct se_session *sess) | ||
3533 | { | ||
3534 | printk(KERN_ERR "This is the SRP protocol, not iSCSI\n"); | ||
3535 | } | ||
3536 | |||
3537 | static int srpt_sess_logged_in(struct se_session *se_sess) | ||
3538 | { | ||
3539 | return true; | ||
3540 | } | ||
3541 | |||
3542 | /** | ||
3543 | * srpt_sess_get_index() - Return the value of scsiAttIntrPortIndex (SCSI-MIB). | 3524 | * srpt_sess_get_index() - Return the value of scsiAttIntrPortIndex (SCSI-MIB). |
3544 | * | 3525 | * |
3545 | * A quote from RFC 4455 (SCSI-MIB) about this MIB object: | 3526 | * A quote from RFC 4455 (SCSI-MIB) about this MIB object: |
@@ -3583,11 +3564,6 @@ static u16 srpt_get_fabric_sense_len(void) | |||
3583 | return 0; | 3564 | return 0; |
3584 | } | 3565 | } |
3585 | 3566 | ||
3586 | static int srpt_is_state_remove(struct se_cmd *se_cmd) | ||
3587 | { | ||
3588 | return 0; | ||
3589 | } | ||
3590 | |||
3591 | /** | 3567 | /** |
3592 | * srpt_parse_i_port_id() - Parse an initiator port ID. | 3568 | * srpt_parse_i_port_id() - Parse an initiator port ID. |
3593 | * @name: ASCII representation of a 128-bit initiator port ID. | 3569 | * @name: ASCII representation of a 128-bit initiator port ID. |
@@ -3957,9 +3933,6 @@ static struct target_core_fabric_ops srpt_template = { | |||
3957 | .check_stop_free = srpt_check_stop_free, | 3933 | .check_stop_free = srpt_check_stop_free, |
3958 | .shutdown_session = srpt_shutdown_session, | 3934 | .shutdown_session = srpt_shutdown_session, |
3959 | .close_session = srpt_close_session, | 3935 | .close_session = srpt_close_session, |
3960 | .stop_session = srpt_stop_session, | ||
3961 | .fall_back_to_erl0 = srpt_reset_nexus, | ||
3962 | .sess_logged_in = srpt_sess_logged_in, | ||
3963 | .sess_get_index = srpt_sess_get_index, | 3936 | .sess_get_index = srpt_sess_get_index, |
3964 | .sess_get_initiator_sid = NULL, | 3937 | .sess_get_initiator_sid = NULL, |
3965 | .write_pending = srpt_write_pending, | 3938 | .write_pending = srpt_write_pending, |
@@ -3972,7 +3945,6 @@ static struct target_core_fabric_ops srpt_template = { | |||
3972 | .queue_tm_rsp = srpt_queue_response, | 3945 | .queue_tm_rsp = srpt_queue_response, |
3973 | .get_fabric_sense_len = srpt_get_fabric_sense_len, | 3946 | .get_fabric_sense_len = srpt_get_fabric_sense_len, |
3974 | .set_fabric_sense_len = srpt_set_fabric_sense_len, | 3947 | .set_fabric_sense_len = srpt_set_fabric_sense_len, |
3975 | .is_state_remove = srpt_is_state_remove, | ||
3976 | /* | 3948 | /* |
3977 | * Setup function pointers for generic logic in | 3949 | * Setup function pointers for generic logic in |
3978 | * target_core_fabric_configfs.c | 3950 | * target_core_fabric_configfs.c |