target: add unknown size flag to target_submit_cmd()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 10 Jan 2012 13:16:59 +0000 (14:16 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sun, 15 Apr 2012 00:40:03 +0000 (17:40 -0700)
commitb0d7994660af1601cc26ef7ab748569fdb9c253b
tree49740bdc2f2284762b1d367295b238c5f3bc931d
parent58d926187758f76647d68e2f51ce44e6ace81873
target: add unknown size flag to target_submit_cmd()

The UASP protocol does not inform the target device upfront how much
data it should expect so we have to learn in from the CDB.  So in order
to handle this case, add a TARGET_SCF_UNKNOWN_SIZE to target_submit_cmd()
and perform an explictly assignment for se_cmd->data_length from the
extracted CDB size in transport_generic_cmd_sequencer().

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c
include/target/target_core_base.h