]> Gentwo Git Trees - linux/.git/commit
ata: libata-scsi: Refactor ata_scsi_simulate()
authorDamien Le Moal <dlemoal@kernel.org>
Tue, 22 Oct 2024 02:45:32 +0000 (11:45 +0900)
committerNiklas Cassel <cassel@kernel.org>
Fri, 25 Oct 2024 08:09:49 +0000 (10:09 +0200)
commitb055e3be63bebc3c50d0fb1830de9bf4f2be388d
tree81a1d36cda08695221980a5751cf20b66b07cc6d
parent08b64eeee4d6ce245c9291dd18d249c3b86723b7
ata: libata-scsi: Refactor ata_scsi_simulate()

Factor out the code handling the INQUIRY command in ata_scsi_simulate()
using the function ata_scsi_rbuf_fill() with the new actor
ata_scsiop_inquiry(). This new actor function calls the existing actors
to handle the standard inquiry as well as extended inquiry (VPD page
access).

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20241022024537.251905-2-dlemoal@kernel.org
Signed-off-by: Niklas Cassel <cassel@kernel.org>
drivers/ata/libata-scsi.c