Home
last modified time | relevance | path

Searched hist:cab9609b (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/target/
H A Dtarget_core_spc.ccab9609b Tue Jan 29 16:10:01 CST 2013 Nicholas Bellinger <nab@linux-iscsi.org> target: Fix zero-length MODE_SENSE regression

This patch fixes a regression introduced in v3.8-rc1 code where
a zero-length MODE_SENSE was no longer returning GOOD status, but
instead returning TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE to generate
a CHECK_CONDITION status.

This regression was introduced with the following commit:

commit de103c93aff0bed0ae984274e5dc8b95899badab
Author: Christoph Hellwig <hch@lst.de>
Date: Tue Nov 6 12:24:09 2012 -0800

target: pass sense_reason as a return value

and this patch has been tested with the following zero-length CDB:

sg_raw /dev/sdd 5a 00 0a 00 00 00 00 00 00 00
SCSI Status: Good

Sense Information:
sense buffer empty

Cc: Christoph Hellwig <hch@lst.de>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
cab9609b Tue Jan 29 16:10:01 CST 2013 Nicholas Bellinger <nab@linux-iscsi.org> target: Fix zero-length MODE_SENSE regression

This patch fixes a regression introduced in v3.8-rc1 code where
a zero-length MODE_SENSE was no longer returning GOOD status, but
instead returning TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE to generate
a CHECK_CONDITION status.

This regression was introduced with the following commit:

commit de103c93aff0bed0ae984274e5dc8b95899badab
Author: Christoph Hellwig <hch@lst.de>
Date: Tue Nov 6 12:24:09 2012 -0800

target: pass sense_reason as a return value

and this patch has been tested with the following zero-length CDB:

sg_raw /dev/sdd 5a 00 0a 00 00 00 00 00 00 00
SCSI Status: Good

Sense Information:
sense buffer empty

Cc: Christoph Hellwig <hch@lst.de>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>