iscsi-target: Refactor ISCSI_OP_TEXT RX handling
authorNicholas Bellinger <nab@linux-iscsi.org>
Fri, 14 Jun 2013 23:46:16 +0000 (16:46 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 25 Jun 2013 05:36:29 +0000 (22:36 -0700)
commit64534aa79496a3bc4f750a695fe9e978ab46e91d
tree6e3bf0ab5bb001c541e76bd425742802c8c8c8b1
parent778de368964c5b7e8100cde9f549992d521e9c89
iscsi-target: Refactor ISCSI_OP_TEXT RX handling

This patch refactors ISCSI_OP_TEXT handling within iscsi-target in
order to handle iscsi_text payloads in a transport specific manner.

This includes splitting current iscsit_handle_text_cmd() into
iscsit_setup_text_cmd() and iscsit_process_text_cmd() calls, and
makes iscsit_handle_text_cmd be only used internally by traditional
iscsi socket calls.

Cc: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c
include/target/iscsi/iscsi_transport.h