summaryrefslogtreecommitdiff
path: root/drivers/target
diff options
context:
space:
mode:
authorVarun Prakash <varun@chelsio.com>2016-04-19 21:30:10 +0300
committerNicholas Bellinger <nab@linux-iscsi.org>2016-05-10 09:12:07 +0300
commit187e84f7c2e4fa0028241c253c24658ef658e5d3 (patch)
tree9b7acc4aa174726240357e564e836554a6356b62 /drivers/target
parent7ec811a8e9c3b8289a863d0dac717e08a5093403 (diff)
downloadlinux-187e84f7c2e4fa0028241c253c24658ef658e5d3.tar.xz
iscsi-target: add void (*iscsit_get_rx_pdu)()
Add void (*iscsit_get_rx_pdu)() to struct iscsit_transport, iscsi-target uses this callback to receive and process Rx iSCSI PDUs. cxgbit.ko needs this callback to reuse iscsi-target Rx thread. Signed-off-by: Varun Prakash <varun@chelsio.com> Acked-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/iscsi/iscsi_target.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c
index 0724c8355e29..9fa9f0b3a0f4 100644
--- a/drivers/target/iscsi/iscsi_target.c
+++ b/drivers/target/iscsi/iscsi_target.c
@@ -3951,14 +3951,8 @@ int iscsi_target_rx_thread(void *arg)
if (rc < 0 || iscsi_target_check_conn_state(conn))
return 0;
- if (conn->conn_transport->transport_type == ISCSI_INFINIBAND) {
- struct completion comp;
-
- init_completion(&comp);
- rc = wait_for_completion_interruptible(&comp);
- if (rc < 0)
- goto transport_err;
-
+ if (conn->conn_transport->iscsit_get_rx_pdu) {
+ conn->conn_transport->iscsit_get_rx_pdu(conn);
goto transport_err;
}