Skip to content

Commit

Permalink
scsi: target: increase XCOPY I/O size
Browse files Browse the repository at this point in the history
The I/O size is already bound by dev_attrib.hw_max_sectors, so increase the
hardcoded XCOPY_MAX_SECTORS maximum to improve performance against
backstores with high-latency.

Link: https://lore.kernel.org/r/20200327141954.955-5-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>
  • Loading branch information
David Disseldorp authored and Martin K. Petersen committed Mar 29, 2020
1 parent 0ad0899 commit 5f306af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/target/target_core_xcopy.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#define XCOPY_TARGET_DESC_LEN 32
#define XCOPY_SEGMENT_DESC_LEN 28
#define XCOPY_NAA_IEEE_REGEX_LEN 16
#define XCOPY_MAX_SECTORS 1024
#define XCOPY_MAX_SECTORS 4096

/*
* SPC4r37 6.4.6.1
Expand Down

0 comments on commit 5f306af

Please sign in to comment.