scsi: scsi_debug: Reduce DEF_ATOMIC_WR_MAX_LENGTH
authorJohn Garry <john.g.garry@oracle.com>
Thu, 1 May 2025 10:02:41 +0000 (10:02 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 6 May 2025 02:08:35 +0000 (22:08 -0400)
commit8c628207d6d114d16ee4f07ba8ee806b4982b13f
treeb190b4ea51d3b5f7951ebf8d9021c012e70640ee
parent0e937fd51e8abe73ade41d8844ff20f5c80395bb
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 <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20250501100241.930071-1-john.g.garry@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c