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/target/iscsi | |
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/target/iscsi')
-rw-r--r-- | drivers/target/iscsi/iscsi_target_configfs.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/drivers/target/iscsi/iscsi_target_configfs.c b/drivers/target/iscsi/iscsi_target_configfs.c index 1174f74f4fbc..00c58cc82c85 100644 --- a/drivers/target/iscsi/iscsi_target_configfs.c +++ b/drivers/target/iscsi/iscsi_target_configfs.c | |||
@@ -1503,28 +1503,6 @@ static int iscsi_get_cmd_state(struct se_cmd *se_cmd) | |||
1503 | return cmd->i_state; | 1503 | return cmd->i_state; |
1504 | } | 1504 | } |
1505 | 1505 | ||
1506 | static int iscsi_is_state_remove(struct se_cmd *se_cmd) | ||
1507 | { | ||
1508 | struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd); | ||
1509 | |||
1510 | return (cmd->i_state == ISTATE_REMOVE); | ||
1511 | } | ||
1512 | |||
1513 | static int lio_sess_logged_in(struct se_session *se_sess) | ||
1514 | { | ||
1515 | struct iscsi_session *sess = se_sess->fabric_sess_ptr; | ||
1516 | int ret; | ||
1517 | /* | ||
1518 | * Called with spin_lock_bh(&tpg_lock); and | ||
1519 | * spin_lock(&se_tpg->session_lock); held. | ||
1520 | */ | ||
1521 | spin_lock(&sess->conn_lock); | ||
1522 | ret = (sess->session_state != TARG_SESS_STATE_LOGGED_IN); | ||
1523 | spin_unlock(&sess->conn_lock); | ||
1524 | |||
1525 | return ret; | ||
1526 | } | ||
1527 | |||
1528 | static u32 lio_sess_get_index(struct se_session *se_sess) | 1506 | static u32 lio_sess_get_index(struct se_session *se_sess) |
1529 | { | 1507 | { |
1530 | struct iscsi_session *sess = se_sess->fabric_sess_ptr; | 1508 | struct iscsi_session *sess = se_sess->fabric_sess_ptr; |
@@ -1718,23 +1696,6 @@ static void lio_tpg_close_session(struct se_session *se_sess) | |||
1718 | iscsit_close_session(sess); | 1696 | iscsit_close_session(sess); |
1719 | } | 1697 | } |
1720 | 1698 | ||
1721 | static void lio_tpg_stop_session( | ||
1722 | struct se_session *se_sess, | ||
1723 | int sess_sleep, | ||
1724 | int conn_sleep) | ||
1725 | { | ||
1726 | struct iscsi_session *sess = se_sess->fabric_sess_ptr; | ||
1727 | |||
1728 | iscsit_stop_session(sess, sess_sleep, conn_sleep); | ||
1729 | } | ||
1730 | |||
1731 | static void lio_tpg_fall_back_to_erl0(struct se_session *se_sess) | ||
1732 | { | ||
1733 | struct iscsi_session *sess = se_sess->fabric_sess_ptr; | ||
1734 | |||
1735 | iscsit_fall_back_to_erl0(sess); | ||
1736 | } | ||
1737 | |||
1738 | static u32 lio_tpg_get_inst_index(struct se_portal_group *se_tpg) | 1699 | static u32 lio_tpg_get_inst_index(struct se_portal_group *se_tpg) |
1739 | { | 1700 | { |
1740 | struct iscsi_portal_group *tpg = se_tpg->se_tpg_fabric_ptr; | 1701 | struct iscsi_portal_group *tpg = se_tpg->se_tpg_fabric_ptr; |
@@ -1798,9 +1759,6 @@ int iscsi_target_register_configfs(void) | |||
1798 | fabric->tf_ops.release_cmd = &lio_release_cmd; | 1759 | fabric->tf_ops.release_cmd = &lio_release_cmd; |
1799 | fabric->tf_ops.shutdown_session = &lio_tpg_shutdown_session; | 1760 | fabric->tf_ops.shutdown_session = &lio_tpg_shutdown_session; |
1800 | fabric->tf_ops.close_session = &lio_tpg_close_session; | 1761 | fabric->tf_ops.close_session = &lio_tpg_close_session; |
1801 | fabric->tf_ops.stop_session = &lio_tpg_stop_session; | ||
1802 | fabric->tf_ops.fall_back_to_erl0 = &lio_tpg_fall_back_to_erl0; | ||
1803 | fabric->tf_ops.sess_logged_in = &lio_sess_logged_in; | ||
1804 | fabric->tf_ops.sess_get_index = &lio_sess_get_index; | 1762 | fabric->tf_ops.sess_get_index = &lio_sess_get_index; |
1805 | fabric->tf_ops.sess_get_initiator_sid = &lio_sess_get_initiator_sid; | 1763 | fabric->tf_ops.sess_get_initiator_sid = &lio_sess_get_initiator_sid; |
1806 | fabric->tf_ops.write_pending = &lio_write_pending; | 1764 | fabric->tf_ops.write_pending = &lio_write_pending; |
@@ -1814,7 +1772,6 @@ int iscsi_target_register_configfs(void) | |||
1814 | fabric->tf_ops.queue_tm_rsp = &lio_queue_tm_rsp; | 1772 | fabric->tf_ops.queue_tm_rsp = &lio_queue_tm_rsp; |
1815 | fabric->tf_ops.set_fabric_sense_len = &lio_set_fabric_sense_len; | 1773 | fabric->tf_ops.set_fabric_sense_len = &lio_set_fabric_sense_len; |
1816 | fabric->tf_ops.get_fabric_sense_len = &lio_get_fabric_sense_len; | 1774 | fabric->tf_ops.get_fabric_sense_len = &lio_get_fabric_sense_len; |
1817 | fabric->tf_ops.is_state_remove = &iscsi_is_state_remove; | ||
1818 | /* | 1775 | /* |
1819 | * Setup function pointers for generic logic in target_core_fabric_configfs.c | 1776 | * Setup function pointers for generic logic in target_core_fabric_configfs.c |
1820 | */ | 1777 | */ |