]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commited94db66eebd2b325b05b27a3091379a0b19ed8b
tree49740bdc2f2284762b1d367295b238c5f3bc931d
parent63ea766f6197c5875af0e0c56edec32beadf0ff2
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