iscsi-target: Move sendtargets parsing into iscsit_process_text_cmd
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 20 Jun 2013 05:43:11 +0000 (22:43 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 4 Jul 2013 02:43:23 +0000 (19:43 -0700)
commit9864ca9d27f75d2716d09dd02b3d62d241194576
treef8b3232edaa52a337e1d83a7862d8d559a7bb559
parentdbf738a1a6f93c634e368e74a1943acb93696b22
iscsi-target: Move sendtargets parsing into iscsit_process_text_cmd

This patch moves ISCSI_OP_TEXT PDU buffer sanity checks to
iscsit_process_text_cmd() code, so that it can be shared
with iser-target code.

It adds IFC_SENDTARGETS_ALL + iscsi_cmd->text_in_ptr in order
to save text payload for ISCSI_OP_TEXT_RSP, and updates
iscsit_release_cmd() to assigned memory.

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
drivers/target/iscsi/iscsi_target_core.h
drivers/target/iscsi/iscsi_target_util.c