mbox series

[0/6] Cleanup and improve libata-scsi command emulation

Message ID 20241022024537.251905-1-dlemoal@kernel.org
Headers show
Series Cleanup and improve libata-scsi command emulation | expand

Message

Damien Le Moal Oct. 22, 2024, 2:45 a.m. UTC
The first 5 patches of this series refactor and cleanup the libata-scsi
code handling command emulation. There are no functional changes
introduced by these patches.

The last patch of the series (patch 6) improves the command emulation
by accurately handling the scsi command residual and transferring back
to the requester only the relevant data of a command reply.

Damien Le Moal (6):
  ata: libata-scsi: Refactor ata_scsi_simulate()
  ata: libata-scsi: Refactor ata_scsiop_read_cap()
  ata: libata-scsi: Refactor ata_scsiop_maint_in()
  ata: libata-scsi: Document all VPD page inquiry actors
  ata: libata-scsi: Remove struct ata_scsi_args
  ata: libata-scsi: Return residual for emulated SCSI commands

 drivers/ata/libata-scsi.c | 503 +++++++++++++++++++++++---------------
 1 file changed, 305 insertions(+), 198 deletions(-)

Comments

Niklas Cassel Oct. 25, 2024, 8:15 a.m. UTC | #1
On Tue, 22 Oct 2024 11:45:31 +0900, Damien Le Moal wrote:
> The first 5 patches of this series refactor and cleanup the libata-scsi
> code handling command emulation. There are no functional changes
> introduced by these patches.
> 
> The last patch of the series (patch 6) improves the command emulation
> by accurately handling the scsi command residual and transferring back
> to the requester only the relevant data of a command reply.
> 
> [...]

Applied to libata/linux.git (for-6.13), thanks!

[1/6] ata: libata-scsi: Refactor ata_scsi_simulate()
      https://git.kernel.org/libata/linux/c/b055e3be
[2/6] ata: libata-scsi: Refactor ata_scsiop_read_cap()
      https://git.kernel.org/libata/linux/c/44bdde15
[3/6] ata: libata-scsi: Refactor ata_scsiop_maint_in()
      https://git.kernel.org/libata/linux/c/4ab7bb97
[4/6] ata: libata-scsi: Document all VPD page inquiry actors
      https://git.kernel.org/libata/linux/c/47000e84
[5/6] ata: libata-scsi: Remove struct ata_scsi_args
      https://git.kernel.org/libata/linux/c/2365278e
[6/6] ata: libata-scsi: Return residual for emulated SCSI commands
      https://git.kernel.org/libata/linux/c/5251ae22

Kind regards,
Niklas