RFC libata/scsi/libsas: Allocate SCSI device earlier for ata port probe
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest6 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | scsi: core: Use SCSI_SCAN_RESCAN in __scsi_add_device()drivers/ | +2 | 1 reply | |
| 2/6 | scsi: scsi_transport_sas: Allocate end device target id in the rphy allocdrivers/ | +17 | 2 replies | |
| 3/6 | scsi: core: Add scsi_get_dev()drivers/ include/ | +28 | 2 replies | |
| 4/6 | ata: libata-scsi: Add ata_scsi_setup_sdev()drivers/ drivers/ include/ | +28 | 0 replies | |
| 5/6 | scsi: libsas: Add sas_ata_setup_device()drivers/ | +20 | 0 replies | |
| 6/6 | ata: libata-scsi: Allocate sdev early in port probedrivers/ drivers/ | +10 | 0 replies |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by.
| Patch | Damien Le Moal |
|---|---|
| 1/6 | R-b |
| 2/6 | |
| 3/6 | |
| 4/6 | |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH RFC 0/6] libata/scsi/libsas: Allocate SCSI device earlier for ata port probe
Currently for libata the SCSI device (sdev) associated with an ata_device is allocated when the port probe has completed.
It's useful to have the SCSI device and its associated request queue available earlier for the port probe. Specifically if we have the request queue available, then we can:
- Easily put ATA qc in SCSI cmnd priv data
- Send ATA internal commands on SCSI device request queue for [0]. The current solution there is to use the shost sdev request queue, which isn't great.
This series changes the ata port probe to alloc the sdev in the ata_device revalidation, and then just do a SCSI starget scan afterwards.
Why an RFC?
1. IPR driver needs to be fixed up - it does not use ATA EH port probe Mail [1] needs following up
2. SATA PMP support needs verification, but I don't have a setup
3. This series needs to be merged into or go after [0]
Patch 1/6 could be merged now.
[0] https://lore.kernel.org/linux-ide/[email protected]/
[1] https://lore.kernel.org/linux-ide/[email protected]/
Any comments welcome - please have a look.
Based on v6.0-rc4 and tested for QEMU AHCI and libsas.
John Garry (6):
scsi: core: Use SCSI_SCAN_RESCAN in __scsi_add_device()
scsi: scsi_transport_sas: Allocate end device target id in the rphy
alloc
scsi: core: Add scsi_get_dev()
ata: libata-scsi: Add ata_scsi_setup_sdev()
scsi: libsas: Add sas_ata_setup_device()
ata: libata-scsi: Allocate sdev early in port probe
drivers/ata/libata-eh.c | 4 +++ drivers/ata/libata-scsi.c | 45 +++++++++++++++++++++---------- drivers/ata/libata.h | 1 + drivers/scsi/libsas/sas_ata.c | 20 ++++++++++++++ drivers/scsi/scsi_scan.c | 28 ++++++++++++++++++- drivers/scsi/scsi_transport_sas.c | 25 +++++++++++------ include/linux/libata.h | 2 ++ include/scsi/scsi_host.h | 3 +++ 8 files changed, 105 insertions(+), 23 deletions(-)
Signature · 1 line
2.35.3