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/loopback/tcm_loop.c | |
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/loopback/tcm_loop.c')
-rw-r--r-- | drivers/target/loopback/tcm_loop.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index 041673e9d2db..026dffa0ed5a 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c | |||
@@ -736,22 +736,6 @@ static u32 tcm_loop_get_inst_index(struct se_portal_group *se_tpg) | |||
736 | return 1; | 736 | return 1; |
737 | } | 737 | } |
738 | 738 | ||
739 | static int tcm_loop_is_state_remove(struct se_cmd *se_cmd) | ||
740 | { | ||
741 | /* | ||
742 | * Assume struct scsi_cmnd is not in remove state.. | ||
743 | */ | ||
744 | return 0; | ||
745 | } | ||
746 | |||
747 | static int tcm_loop_sess_logged_in(struct se_session *se_sess) | ||
748 | { | ||
749 | /* | ||
750 | * Assume that TL Nexus is always active | ||
751 | */ | ||
752 | return 1; | ||
753 | } | ||
754 | |||
755 | static u32 tcm_loop_sess_get_index(struct se_session *se_sess) | 739 | static u32 tcm_loop_sess_get_index(struct se_session *se_sess) |
756 | { | 740 | { |
757 | return 1; | 741 | return 1; |
@@ -785,19 +769,6 @@ static void tcm_loop_close_session(struct se_session *se_sess) | |||
785 | return; | 769 | return; |
786 | }; | 770 | }; |
787 | 771 | ||
788 | static void tcm_loop_stop_session( | ||
789 | struct se_session *se_sess, | ||
790 | int sess_sleep, | ||
791 | int conn_sleep) | ||
792 | { | ||
793 | return; | ||
794 | } | ||
795 | |||
796 | static void tcm_loop_fall_back_to_erl0(struct se_session *se_sess) | ||
797 | { | ||
798 | return; | ||
799 | } | ||
800 | |||
801 | static int tcm_loop_write_pending(struct se_cmd *se_cmd) | 772 | static int tcm_loop_write_pending(struct se_cmd *se_cmd) |
802 | { | 773 | { |
803 | /* | 774 | /* |
@@ -1391,9 +1362,6 @@ static int tcm_loop_register_configfs(void) | |||
1391 | fabric->tf_ops.release_cmd = &tcm_loop_release_cmd; | 1362 | fabric->tf_ops.release_cmd = &tcm_loop_release_cmd; |
1392 | fabric->tf_ops.shutdown_session = &tcm_loop_shutdown_session; | 1363 | fabric->tf_ops.shutdown_session = &tcm_loop_shutdown_session; |
1393 | fabric->tf_ops.close_session = &tcm_loop_close_session; | 1364 | fabric->tf_ops.close_session = &tcm_loop_close_session; |
1394 | fabric->tf_ops.stop_session = &tcm_loop_stop_session; | ||
1395 | fabric->tf_ops.fall_back_to_erl0 = &tcm_loop_fall_back_to_erl0; | ||
1396 | fabric->tf_ops.sess_logged_in = &tcm_loop_sess_logged_in; | ||
1397 | fabric->tf_ops.sess_get_index = &tcm_loop_sess_get_index; | 1365 | fabric->tf_ops.sess_get_index = &tcm_loop_sess_get_index; |
1398 | fabric->tf_ops.sess_get_initiator_sid = NULL; | 1366 | fabric->tf_ops.sess_get_initiator_sid = NULL; |
1399 | fabric->tf_ops.write_pending = &tcm_loop_write_pending; | 1367 | fabric->tf_ops.write_pending = &tcm_loop_write_pending; |
@@ -1410,7 +1378,6 @@ static int tcm_loop_register_configfs(void) | |||
1410 | fabric->tf_ops.queue_tm_rsp = &tcm_loop_queue_tm_rsp; | 1378 | fabric->tf_ops.queue_tm_rsp = &tcm_loop_queue_tm_rsp; |
1411 | fabric->tf_ops.set_fabric_sense_len = &tcm_loop_set_fabric_sense_len; | 1379 | fabric->tf_ops.set_fabric_sense_len = &tcm_loop_set_fabric_sense_len; |
1412 | fabric->tf_ops.get_fabric_sense_len = &tcm_loop_get_fabric_sense_len; | 1380 | fabric->tf_ops.get_fabric_sense_len = &tcm_loop_get_fabric_sense_len; |
1413 | fabric->tf_ops.is_state_remove = &tcm_loop_is_state_remove; | ||
1414 | 1381 | ||
1415 | tf_cg = &fabric->tf_group; | 1382 | tf_cg = &fabric->tf_group; |
1416 | /* | 1383 | /* |