]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: scsi_debug: Simplify command handling
authorBart Van Assche <bvanassche@acm.org>
Mon, 24 Feb 2025 11:55:16 +0000 (11:55 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 25 Feb 2025 01:53:07 +0000 (20:53 -0500)
commitb441eafbd1ebb37676ba271295bf98ca8c8c6dfb
tree5ed5073ba9eb83b0b3412966ce8d5c6d6d33ecfa
parent7f92ca91c8efa095ab5607b7c67b90eee9ff4683
scsi: scsi_debug: Simplify command handling

Simplify command handling by moving struct sdebug_defer into the private
SCSI command data instead of allocating it separately. The only functional
change is that aborting a SCSI command now fails and is retried at a later
time if the completion handler can't be cancelled.

See also commit 1107c7b24ee3 ("scsi: scsi_debug: Dynamically allocate
sdebug_queued_cmd").

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20250224115517.495899-4-john.g.garry@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c