From 2af3b0c1082bd9365faf0a6c82264d09fe081f33 Mon Sep 17 00:00:00 2001 From: John Garry Date: Mon, 24 Feb 2025 11:55:14 +0000 Subject: [PATCH] scsi: scsi_debug: Remove sdebug_device_access_info This structure is not used, so delete it. It was originally intended for supporting checking for atomic writes overlapping with ongoing reads and writes, but that support never got added. SBC-4 r22 section 4.29.3.2 "Performing operations during an atomic write operation" describes two methods of handling overlapping atomic writes. Currently the only method supported is for the ongoing read or write to complete. Signed-off-by: John Garry Link: https://lore.kernel.org/r/20250224115517.495899-2-john.g.garry@oracle.com Reviewed-by: Bart Van Assche Signed-off-by: Martin K. Petersen --- drivers/scsi/scsi_debug.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c index 2f60ab9a93bde..e3ebb6710d418 100644 --- a/drivers/scsi/scsi_debug.c +++ b/drivers/scsi/scsi_debug.c @@ -460,12 +460,6 @@ struct sdebug_defer { enum sdeb_defer_type defer_t; }; -struct sdebug_device_access_info { - bool atomic_write; - u64 lba; - u32 num; - struct scsi_cmnd *self; -}; struct sdebug_queued_cmd { /* corresponding bit set in in_use_bm[] in owning struct sdebug_queue @@ -473,7 +467,6 @@ struct sdebug_queued_cmd { */ struct sdebug_defer sd_dp; struct scsi_cmnd *scmd; - struct sdebug_device_access_info *i; }; struct sdebug_scsi_cmd { -- 2.50.1