From: Martin Svec Date: Tue, 7 Feb 2012 06:13:25 +0000 (-0800) Subject: target: Fix unsupported WRITE_SAME sense payload X-Git-Tag: v3.2.15~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c47f1832ad77075020307589e291faa7dcd7551;p=pandora-kernel.git 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 Signed-off-by: Nicholas Bellinger Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed