]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Wed, 26 Jun 2013 07:35:00 +0000 (00:35 -0700)
commite164dd0b4d7ae40715fd69367bec4f327d49a32e
tree118c88b170a025805d39dfc8d884637515dffd31
parent58203ef7ae06f17f7ee238491cd7301abe3dfc19
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