Skip to content

Commit 2af3b0c

Browse files
johnpgarrymartinkpetersen
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 0107fb8 commit 2af3b0c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/scsi/scsi_debug.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -460,20 +460,13 @@ struct sdebug_defer {
460460
enum sdeb_defer_type defer_t;
461461
};
462462

463-
struct sdebug_device_access_info {
464-
bool atomic_write;
465-
u64 lba;
466-
u32 num;
467-
struct scsi_cmnd *self;
468-
};
469463

470464
struct sdebug_queued_cmd {
471465
/* corresponding bit set in in_use_bm[] in owning struct sdebug_queue
472466
* instance indicates this slot is in use.
473467
*/
474468
struct sdebug_defer sd_dp;
475469
struct scsi_cmnd *scmd;
476-
struct sdebug_device_access_info *i;
477470
};
478471

479472
struct sdebug_scsi_cmd {

0 commit comments

Comments
 (0)