aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2012-07-08 15:58:46 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2012-07-16 20:35:20 -0400
commit1389533ef944823a6ebc170345ad8743e48bc404 (patch)
tree53cb646e75d379521e205175505c4d9939b4589b /drivers/target
parentb8b22533fed12dbb9e5a63d414cb1c768d1c28dd (diff)
target: remove transport_generic_handle_data
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_transport.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c
index db139133f708..1f28d1804e15 100644
--- a/drivers/target/target_core_transport.c
+++ b/drivers/target/target_core_transport.c
@@ -1583,12 +1583,6 @@ void target_submit_cmd(struct se_cmd *se_cmd, struct se_session *se_sess,
1583 */ 1583 */
1584 core_alua_check_nonop_delay(se_cmd); 1584 core_alua_check_nonop_delay(se_cmd);
1585 1585
1586 /*
1587 * Dispatch se_cmd descriptor to se_lun->lun_se_dev backend
1588 * for immediate execution of READs, otherwise wait for
1589 * transport_generic_handle_data() to be called for WRITEs
1590 * when fabric has filled the incoming buffer.
1591 */
1592 transport_handle_cdb_direct(se_cmd); 1586 transport_handle_cdb_direct(se_cmd);
1593 return; 1587 return;
1594} 1588}
@@ -1681,36 +1675,6 @@ int transport_generic_handle_cdb_map(
1681} 1675}
1682EXPORT_SYMBOL(transport_generic_handle_cdb_map); 1676EXPORT_SYMBOL(transport_generic_handle_cdb_map);
1683 1677
1684/* transport_generic_handle_data():
1685 *
1686 *
1687 */
1688int transport_generic_handle_data(
1689 struct se_cmd *cmd)
1690{
1691 /*
1692 * For the software fabric case, then we assume the nexus is being
1693 * failed/shutdown when signals are pending from the kthread context
1694 * caller, so we return a failure. For the HW target mode case running
1695 * in interrupt code, the signal_pending() check is skipped.
1696 */
1697 if (!in_interrupt() && signal_pending(current))
1698 return -EPERM;
1699 /*
1700 * If the received CDB has aleady been ABORTED by the generic
1701 * target engine, we now call transport_check_aborted_status()
1702 * to queue any delated TASK_ABORTED status for the received CDB to the
1703 * fabric module as we are expecting no further incoming DATA OUT
1704 * sequences at this point.
1705 */
1706 if (transport_check_aborted_status(cmd, 1) != 0)
1707 return 0;
1708
1709 transport_add_cmd_to_queue(cmd, TRANSPORT_PROCESS_WRITE, false);
1710 return 0;
1711}
1712EXPORT_SYMBOL(transport_generic_handle_data);
1713
1714/* transport_generic_handle_tmr(): 1678/* transport_generic_handle_tmr():
1715 * 1679 *
1716 * 1680 *
@@ -3295,9 +3259,6 @@ get_cmd:
3295 break; 3259 break;
3296 } 3260 }
3297 break; 3261 break;
3298 case TRANSPORT_PROCESS_WRITE:
3299 target_execute_cmd(cmd);
3300 break;
3301 case TRANSPORT_PROCESS_TMR: 3262 case TRANSPORT_PROCESS_TMR:
3302 transport_generic_do_tmr(cmd); 3263 transport_generic_do_tmr(cmd);
3303 break; 3264 break;