target: Fix write payload exception handling with ->new_cmd_map
authorNicholas Bellinger <nab@linux-iscsi.org>
Tue, 9 Aug 2011 02:03:38 +0000 (19:03 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 22 Aug 2011 19:26:20 +0000 (19:26 +0000)
commit16ab8e60a0ebc22cfbe61d84e620457a15f3a0bc
treea6ccaf22e12140045f70678d6dd213154cd11087
parent387e96c05299ca7a0ade874f343f91f0b01086a0
target: Fix write payload exception handling with ->new_cmd_map

This patch fixes a bug for fabrics using tfo->new_cmd_map() that
are expect transport_generic_request_failure() to be calling
transport_send_check_condition_and_sense() for both READ and WRITE,
instead of only for READ exceptions.

This was originally observed with a failed WRITE_SAME_16 w/ unmap=0
using tcm_loop.

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c