diff options
author | Martin Svec <martin.svec@zoner.cz> | 2012-02-06 22:13:25 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-13 08:33:48 -0700 |
commit | 3c47f1832ad77075020307589e291faa7dcd7551 (patch) | |
tree | 3046ccb50c15fc187c57d7cae09902b7801a84fd /kernel | |
parent | bf60b022fc40cbb8dd501ccc00629bec86ebc6b7 (diff) |
target: Fix unsupported WRITE_SAME sense payload
commit 67236c44741e250199ccd77f1115568e68cf8848 upstream.
This patch fixes a bug in target-core where unsupported WRITE_SAME ops
from a target_check_write_same_discard() failure was incorrectly
returning CHECK_CONDITION w/ TCM_INVALID_CDB_FIELD sense data.
This was causing some clients to not properly fall back, so go ahead
and use the correct TCM_UNSUPPORTED_SCSI_OPCODE sense for this case.
Reported-by: Martin Svec <martin.svec@zoner.cz>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions