target: Add per device xcopy_lun for copy offload I/O
authorNicholas Bellinger <nab@linux-iscsi.org>
Fri, 8 Nov 2013 21:10:44 +0000 (13:10 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 8 Nov 2013 21:13:38 +0000 (13:13 -0800)
commit4863e525659abbc903aacc67fd916f12914f6c1d
tree228f0fe16e5264922c383c5b9a6cfc17b30a5e6d
parent4a9a6c8d538eff6d627fa14409c7c25aff652541
target: Add per device xcopy_lun for copy offload I/O

This patch adds a se_device->xcopy_lun that is used for local
copy offload I/O, instead of allocating + initializing a pseudo
se_lun for each received EXTENDED_COPY operation.

Also, move declaration of struct se_lun + struct se_port_stat_grps
ahead of struct se_device.

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_device.c
drivers/target/target_core_xcopy.c
include/target/target_core_base.h