summaryrefslogtreecommitdiff
path: root/drivers/target/target_core_xcopy.h
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@suse.de>2020-03-27 15:19:54 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2020-03-29 18:10:59 -0400
commitb92fcfcb687de7d08278a557faff3a7b4a672cc7 (patch)
tree17bb12ed6781bb18730ba99fec3e286ca9450e01 /drivers/target/target_core_xcopy.h
parent5f306aff34809fca68bb36476e66552ac241a9c4 (diff)
scsi: target: use the stack for XCOPY passthrough cmds
Reads and writes in the XCOPY loop are synchronous, so needn't be heap allocated / freed with each loop. Link: https://lore.kernel.org/r/20200327141954.955-6-ddiss@suse.de Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David Disseldorp <ddiss@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/target/target_core_xcopy.h')
-rw-r--r--drivers/target/target_core_xcopy.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/target/target_core_xcopy.h b/drivers/target/target_core_xcopy.h
index f1aaf7140798..c56a1bde9417 100644
--- a/drivers/target/target_core_xcopy.h
+++ b/drivers/target/target_core_xcopy.h
@@ -18,8 +18,6 @@ enum xcopy_origin_list {
XCOL_DEST_RECV_OP = 0x02,
};
-struct xcopy_pt_cmd;
-
struct xcopy_op {
int op_origin;
@@ -36,9 +34,6 @@ struct xcopy_op {
unsigned short dtdi;
unsigned short nolb;
- struct xcopy_pt_cmd *src_pt_cmd;
- struct xcopy_pt_cmd *dst_pt_cmd;
-
u32 xop_data_bytes;
u32 xop_data_nents;
struct scatterlist *xop_data_sg;