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/tcm_fc | |
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/tcm_fc')
-rw-r--r-- | drivers/target/tcm_fc/tcm_fc.h | 4 | ||||
-rw-r--r-- | drivers/target/tcm_fc/tfc_cmd.c | 5 | ||||
-rw-r--r-- | drivers/target/tcm_fc/tfc_conf.c | 4 | ||||
-rw-r--r-- | drivers/target/tcm_fc/tfc_sess.c | 19 |
4 files changed, 0 insertions, 32 deletions
diff --git a/drivers/target/tcm_fc/tcm_fc.h b/drivers/target/tcm_fc/tcm_fc.h index 7906b9f8eba7..524b97683983 100644 --- a/drivers/target/tcm_fc/tcm_fc.h +++ b/drivers/target/tcm_fc/tcm_fc.h | |||
@@ -141,11 +141,8 @@ extern struct target_fabric_configfs *ft_configfs; | |||
141 | void ft_sess_put(struct ft_sess *); | 141 | void ft_sess_put(struct ft_sess *); |
142 | int ft_sess_shutdown(struct se_session *); | 142 | int ft_sess_shutdown(struct se_session *); |
143 | void ft_sess_close(struct se_session *); | 143 | void ft_sess_close(struct se_session *); |
144 | void ft_sess_stop(struct se_session *, int, int); | ||
145 | int ft_sess_logged_in(struct se_session *); | ||
146 | u32 ft_sess_get_index(struct se_session *); | 144 | u32 ft_sess_get_index(struct se_session *); |
147 | u32 ft_sess_get_port_name(struct se_session *, unsigned char *, u32); | 145 | u32 ft_sess_get_port_name(struct se_session *, unsigned char *, u32); |
148 | void ft_sess_set_erl0(struct se_session *); | ||
149 | 146 | ||
150 | void ft_lport_add(struct fc_lport *, void *); | 147 | void ft_lport_add(struct fc_lport *, void *); |
151 | void ft_lport_del(struct fc_lport *, void *); | 148 | void ft_lport_del(struct fc_lport *, void *); |
@@ -163,7 +160,6 @@ int ft_write_pending_status(struct se_cmd *); | |||
163 | u32 ft_get_task_tag(struct se_cmd *); | 160 | u32 ft_get_task_tag(struct se_cmd *); |
164 | int ft_get_cmd_state(struct se_cmd *); | 161 | int ft_get_cmd_state(struct se_cmd *); |
165 | int ft_queue_tm_resp(struct se_cmd *); | 162 | int ft_queue_tm_resp(struct se_cmd *); |
166 | int ft_is_state_remove(struct se_cmd *); | ||
167 | 163 | ||
168 | /* | 164 | /* |
169 | * other internal functions. | 165 | * other internal functions. |
diff --git a/drivers/target/tcm_fc/tfc_cmd.c b/drivers/target/tcm_fc/tfc_cmd.c index 17ffc82274a4..b831461156bf 100644 --- a/drivers/target/tcm_fc/tfc_cmd.c +++ b/drivers/target/tcm_fc/tfc_cmd.c | |||
@@ -244,11 +244,6 @@ int ft_get_cmd_state(struct se_cmd *se_cmd) | |||
244 | return 0; | 244 | return 0; |
245 | } | 245 | } |
246 | 246 | ||
247 | int ft_is_state_remove(struct se_cmd *se_cmd) | ||
248 | { | ||
249 | return 0; /* XXX TBD */ | ||
250 | } | ||
251 | |||
252 | /* | 247 | /* |
253 | * FC sequence response handler for follow-on sequences (data) and aborts. | 248 | * FC sequence response handler for follow-on sequences (data) and aborts. |
254 | */ | 249 | */ |
diff --git a/drivers/target/tcm_fc/tfc_conf.c b/drivers/target/tcm_fc/tfc_conf.c index 73852fbc857b..f357039349ba 100644 --- a/drivers/target/tcm_fc/tfc_conf.c +++ b/drivers/target/tcm_fc/tfc_conf.c | |||
@@ -529,9 +529,6 @@ static struct target_core_fabric_ops ft_fabric_ops = { | |||
529 | .release_cmd = ft_release_cmd, | 529 | .release_cmd = ft_release_cmd, |
530 | .shutdown_session = ft_sess_shutdown, | 530 | .shutdown_session = ft_sess_shutdown, |
531 | .close_session = ft_sess_close, | 531 | .close_session = ft_sess_close, |
532 | .stop_session = ft_sess_stop, | ||
533 | .fall_back_to_erl0 = ft_sess_set_erl0, | ||
534 | .sess_logged_in = ft_sess_logged_in, | ||
535 | .sess_get_index = ft_sess_get_index, | 532 | .sess_get_index = ft_sess_get_index, |
536 | .sess_get_initiator_sid = NULL, | 533 | .sess_get_initiator_sid = NULL, |
537 | .write_pending = ft_write_pending, | 534 | .write_pending = ft_write_pending, |
@@ -544,7 +541,6 @@ static struct target_core_fabric_ops ft_fabric_ops = { | |||
544 | .queue_tm_rsp = ft_queue_tm_resp, | 541 | .queue_tm_rsp = ft_queue_tm_resp, |
545 | .get_fabric_sense_len = ft_get_fabric_sense_len, | 542 | .get_fabric_sense_len = ft_get_fabric_sense_len, |
546 | .set_fabric_sense_len = ft_set_fabric_sense_len, | 543 | .set_fabric_sense_len = ft_set_fabric_sense_len, |
547 | .is_state_remove = ft_is_state_remove, | ||
548 | /* | 544 | /* |
549 | * Setup function pointers for generic logic in | 545 | * Setup function pointers for generic logic in |
550 | * target_core_fabric_configfs.c | 546 | * target_core_fabric_configfs.c |
diff --git a/drivers/target/tcm_fc/tfc_sess.c b/drivers/target/tcm_fc/tfc_sess.c index 4c0507cf808c..a1d1f3c86447 100644 --- a/drivers/target/tcm_fc/tfc_sess.c +++ b/drivers/target/tcm_fc/tfc_sess.c | |||
@@ -338,20 +338,6 @@ void ft_sess_close(struct se_session *se_sess) | |||
338 | synchronize_rcu(); /* let transport deregister happen */ | 338 | synchronize_rcu(); /* let transport deregister happen */ |
339 | } | 339 | } |
340 | 340 | ||
341 | void ft_sess_stop(struct se_session *se_sess, int sess_sleep, int conn_sleep) | ||
342 | { | ||
343 | struct ft_sess *sess = se_sess->fabric_sess_ptr; | ||
344 | |||
345 | pr_debug("port_id %x\n", sess->port_id); | ||
346 | } | ||
347 | |||
348 | int ft_sess_logged_in(struct se_session *se_sess) | ||
349 | { | ||
350 | struct ft_sess *sess = se_sess->fabric_sess_ptr; | ||
351 | |||
352 | return sess->port_id != -1; | ||
353 | } | ||
354 | |||
355 | u32 ft_sess_get_index(struct se_session *se_sess) | 341 | u32 ft_sess_get_index(struct se_session *se_sess) |
356 | { | 342 | { |
357 | struct ft_sess *sess = se_sess->fabric_sess_ptr; | 343 | struct ft_sess *sess = se_sess->fabric_sess_ptr; |
@@ -367,11 +353,6 @@ u32 ft_sess_get_port_name(struct se_session *se_sess, | |||
367 | return ft_format_wwn(buf, len, sess->port_name); | 353 | return ft_format_wwn(buf, len, sess->port_name); |
368 | } | 354 | } |
369 | 355 | ||
370 | void ft_sess_set_erl0(struct se_session *se_sess) | ||
371 | { | ||
372 | /* XXX TBD called when out of memory */ | ||
373 | } | ||
374 | |||
375 | /* | 356 | /* |
376 | * libfc ops involving sessions. | 357 | * libfc ops involving sessions. |
377 | */ | 358 | */ |