]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit127ea6f55f337768705a5d0ee25bd623d2e14455
treea6ccaf22e12140045f70678d6dd213154cd11087
parent66e301fbc81c0df6d985f86d695e73f0ffd18807
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