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)
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>

No differences found