Skip to content

Commit 8c62820

Browse files
johnpgarrymartinkpetersen
authored andcommitted
scsi: scsi_debug: Reduce DEF_ATOMIC_WR_MAX_LENGTH
The default atomic write max length in DEF_ATOMIC_WR_MAX_LENGTH is excessively large. For 512B LBS, we would get a 4MB max, but due to block layer atomic write restrictions this is limited to 512KB. Reduce DEF_ATOMIC_WR_MAX_LENGTH to a value which would be more realistic (for a real device supporting atomic writes), 64KB. Signed-off-by: John Garry <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 0e937fd commit 8c62820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/scsi_debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ static const char *sdebug_version_date = "20210520";
162162
#define DEF_VPD_USE_HOSTNO 1
163163
#define DEF_WRITESAME_LENGTH 0xFFFF
164164
#define DEF_ATOMIC_WR 0
165-
#define DEF_ATOMIC_WR_MAX_LENGTH 8192
165+
#define DEF_ATOMIC_WR_MAX_LENGTH 128
166166
#define DEF_ATOMIC_WR_ALIGN 2
167167
#define DEF_ATOMIC_WR_GRAN 2
168168
#define DEF_ATOMIC_WR_MAX_LENGTH_BNDRY (DEF_ATOMIC_WR_MAX_LENGTH)

0 commit comments

Comments
 (0)