[PATCH 0/3] target: Miscellaneous XCOPY bugfixes for v3.12-rc7 code

From: Nicholas A. Bellinger
Date: Thu Oct 24 2013 - 03:48:59 EST

From: Nicholas Bellinger <nab@xxxxxxxxxxxxxxx>

Hi folks,

The following series is a handful XCOPY related fixes for v3.12-rc7 code
based upon a recent bug-report from Thomas + Doug wrt to XCOPY local I/O
operations across source + destination devices with non-matching block_sizes.

The first patch adds the missing XCOPY I/O operation sense_buffer setup
that was triggering the original OOPs. The second patch addresses the
case where a non-zero scsi_status was incorrectly returning GOOD status
for locally generated XCOPY I/O exceptions.

The final patch adds an explicit check + failure for XCOPY operations across
source + destination devices with non-matching block_sizes.

Note this limitiation is currently due to the fact that the scatterlist
memory allocated for the XCOPY READ operation is passed zero-copy for use
by the subsequent XCOPY WRITE operation. For v3.12 code it makes sense to
go ahead and explicitly prevent this from occurring, and the plan is to add
a slow-path memcpy to address this special case in post v3.12 code.



Nicholas Bellinger (3):
target: Add missing XCOPY I/O operation sense_buffer
target: Generate failure for XCOPY I/O with non-zero scsi_status
target: Fail XCOPY for non matching source + destination block_size

drivers/target/target_core_xcopy.c | 22 ++++++++++++++++++----
1 files changed, 18 insertions(+), 4 deletions(-)


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/