target: Add missing XCOPY I/O operation sense_buffer
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 24 Oct 2013 07:10:36 +0000 (00:10 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 24 Oct 2013 07:28:08 +0000 (00:28 -0700)
commit366bda191c344ec4d7a5b908cf047bc09639ad3d
tree8a6140f7dd9b5352810d77904182ef546e5e36ea
parent0a66614b937c4cfe98c68613259367bf402f368b
target: Add missing XCOPY I/O operation sense_buffer

This patch adds the missing xcopy_pt_cmd->sense_buffer[] required for
correctly handling CHECK_CONDITION exceptions within the locally
generated XCOPY I/O path.

Also update target_xcopy_read_source() + target_xcopy_setup_pt_cmd()
to pass this buffer into transport_init_se_cmd() to correctly setup
se_cmd->sense_buffer.

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