target: Fix BIDI t_task_cdb handling in transport_generic_new_cmd
authorNicholas Bellinger <nab@linux-iscsi.org>
Sat, 22 Oct 2011 11:06:23 +0000 (04:06 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 24 Oct 2011 03:22:02 +0000 (03:22 +0000)
This patch fixes a bug for BIDI handling in transport_generic_new_cmd() where
cmd->t_task_cdbs_left and Co. where not taking into account the extra
task count generated during the first call to transport_allocate_data_tasks().

Cc: Christoph Hellwig <hch@lst.de>
Cc: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c