Skip to content

Additional SCSI updates for 9.1

Ewan D. Milne requested to merge e-milne/centos-stream-9:bz2094105 into main

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2094105 Upstream Status: From upstream linux mainline Tested: Tested by QE regression testing for error handling paths Signed-off-by: Ewan D. Milne emilne@redhat.com

Additional updates to the SCSI beyond upstream 5.17 have been requested by kernel-rt:

scsi: usb: storage: Complete the SCSI request directly scsi: usb: Call scsi_done() directly

These changes are dependent on the scsi_done_direct() functionality, which in turn depend on some refactoring of the scsi_done() mechanism and require some earlier patches in order to apply cleanly:

scsi: core: Add scsi_done_direct() for immediate completion scsi: core: Rename scsi_mq_done() into scsi_done() and export it scsi: core: Use a structure member to track the SCSI command submitter

Note that the upstream series to refactor scsi_done() touched all drivers to have them invoke the now exported scsi_done() symbols for command completion, instead of calling direct through scsi_cmnd->scsi_done(). As it is undesirable to make these changes, particularly at this stage in the development cycle, due to the amount of testing required, the changes for this BZ will not include the removal of scsi_cmnd->scsi_done() and will allow drivers to use either the old indirect or the new direct mechanism, to provide more time to allow all the drivers to be updated.

The usb changes will be incorporated into a subsequent usb sybsystem update.

Edited by Ewan D. Milne

Merge request reports