]> git.baikalelectronics.ru Git - kernel.git/commit
target: Fail XCOPY for non matching source + destination block_size
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 24 Oct 2013 07:27:00 +0000 (00:27 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 24 Oct 2013 07:28:52 +0000 (00:28 -0700)
commit3af458e0c6b1af8ff1a52f3bad275ae5b48435d5
treed692d4a0191a51efd0273bce3c3aa5274c50f5ad
parent16168511a262cbdd3a3c8e7bc7e3dd99d6f22ec4
target: Fail XCOPY for non matching source + destination block_size

This patch adds an explicit check + failure for XCOPY I/O to source +
destination devices with a non-matching block_size.

This limitiation is currently due to the fact that the scatterlist
memory allocated for the XCOPY READ operation is passed zero-copy
to the XCOPY WRITE operation.

Reported-by: Thomas Glanzmann <thomas@glanzmann.de>
Reported-by: Douglas Gilbert <dgilbert@interlog.com>
Cc: Thomas Glanzmann <thomas@glanzmann.de>
Cc: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_xcopy.c