diff options
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_tmr.c | 10 | ||||
-rw-r--r-- | drivers/target/target_core_transport.c | 10 |
2 files changed, 0 insertions, 20 deletions
diff --git a/drivers/target/target_core_tmr.c b/drivers/target/target_core_tmr.c index b1b9f2d6f935..1d2aaba3f372 100644 --- a/drivers/target/target_core_tmr.c +++ b/drivers/target/target_core_tmr.c | |||
@@ -329,16 +329,6 @@ static void core_tmr_drain_cmd_list( | |||
329 | */ | 329 | */ |
330 | if (prout_cmd == cmd) | 330 | if (prout_cmd == cmd) |
331 | continue; | 331 | continue; |
332 | /* | ||
333 | * Skip direct processing of TRANSPORT_FREE_CMD_INTR for | ||
334 | * HW target mode fabrics. | ||
335 | */ | ||
336 | spin_lock(&cmd->t_state_lock); | ||
337 | if (cmd->t_state == TRANSPORT_FREE_CMD_INTR) { | ||
338 | spin_unlock(&cmd->t_state_lock); | ||
339 | continue; | ||
340 | } | ||
341 | spin_unlock(&cmd->t_state_lock); | ||
342 | 332 | ||
343 | atomic_set(&cmd->t_transport_queue_active, 0); | 333 | atomic_set(&cmd->t_transport_queue_active, 0); |
344 | atomic_dec(&qobj->queue_cnt); | 334 | atomic_dec(&qobj->queue_cnt); |
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index bf8867f44021..64ee3342e0c2 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c | |||
@@ -1718,13 +1718,6 @@ int transport_generic_handle_tmr( | |||
1718 | } | 1718 | } |
1719 | EXPORT_SYMBOL(transport_generic_handle_tmr); | 1719 | EXPORT_SYMBOL(transport_generic_handle_tmr); |
1720 | 1720 | ||
1721 | void transport_generic_free_cmd_intr( | ||
1722 | struct se_cmd *cmd) | ||
1723 | { | ||
1724 | transport_add_cmd_to_queue(cmd, TRANSPORT_FREE_CMD_INTR, false); | ||
1725 | } | ||
1726 | EXPORT_SYMBOL(transport_generic_free_cmd_intr); | ||
1727 | |||
1728 | /* | 1721 | /* |
1729 | * If the task is active, request it to be stopped and sleep until it | 1722 | * If the task is active, request it to be stopped and sleep until it |
1730 | * has completed. | 1723 | * has completed. |
@@ -4597,9 +4590,6 @@ get_cmd: | |||
4597 | case TRANSPORT_PROCESS_WRITE: | 4590 | case TRANSPORT_PROCESS_WRITE: |
4598 | transport_generic_process_write(cmd); | 4591 | transport_generic_process_write(cmd); |
4599 | break; | 4592 | break; |
4600 | case TRANSPORT_FREE_CMD_INTR: | ||
4601 | transport_generic_free_cmd(cmd, 0); | ||
4602 | break; | ||
4603 | case TRANSPORT_PROCESS_TMR: | 4593 | case TRANSPORT_PROCESS_TMR: |
4604 | transport_generic_do_tmr(cmd); | 4594 | transport_generic_do_tmr(cmd); |
4605 | break; | 4595 | break; |