mbox series

[0/4] libata: misc frozen port cleanups

Message ID 20221007132342.1590367-1-niklas.cassel@wdc.com
Headers show
Series libata: misc frozen port cleanups | expand

Message

Niklas Cassel Oct. 7, 2022, 1:23 p.m. UTC
Hello there,

This series adds a new ata_port_is_frozen() helper function,
and makes use of it in ata and libsas.

Additionally, improve ata_read_log_page() to avoid a futile
retry while the port is frozen.

Kind regards,
Niklas


Niklas Cassel (4):
  ata: add ata_port_is_frozen() helper
  ata: make use of ata_port_is_frozen() helper
  scsi: libsas: make use of ata_port_is_frozen() helper
  ata: libata-core: do not retry reading the log on timeout

 drivers/ata/libahci.c         |  6 +++---
 drivers/ata/libata-acpi.c     |  4 ++--
 drivers/ata/libata-core.c     |  7 ++++---
 drivers/ata/libata-eh.c       | 21 ++++++++++-----------
 drivers/ata/libata-sata.c     |  2 +-
 drivers/ata/libata-scsi.c     |  2 +-
 drivers/ata/sata_nv.c         |  2 +-
 drivers/ata/sata_promise.c    |  2 +-
 drivers/ata/sata_sx4.c        |  2 +-
 drivers/scsi/libsas/sas_ata.c |  2 +-
 include/linux/libata.h        |  5 +++++
 11 files changed, 30 insertions(+), 25 deletions(-)

Comments

Damien Le Moal Oct. 18, 2022, 4:59 a.m. UTC | #1
On 10/7/22 22:23, Niklas Cassel wrote:
> Hello there,
> 
> This series adds a new ata_port_is_frozen() helper function,
> and makes use of it in ata and libsas.
> 
> Additionally, improve ata_read_log_page() to avoid a futile
> retry while the port is frozen.
> 
> Kind regards,
> Niklas
> 
> 
> Niklas Cassel (4):
>   ata: add ata_port_is_frozen() helper
>   ata: make use of ata_port_is_frozen() helper
>   scsi: libsas: make use of ata_port_is_frozen() helper
>   ata: libata-core: do not retry reading the log on timeout
> 
>  drivers/ata/libahci.c         |  6 +++---
>  drivers/ata/libata-acpi.c     |  4 ++--
>  drivers/ata/libata-core.c     |  7 ++++---
>  drivers/ata/libata-eh.c       | 21 ++++++++++-----------
>  drivers/ata/libata-sata.c     |  2 +-
>  drivers/ata/libata-scsi.c     |  2 +-
>  drivers/ata/sata_nv.c         |  2 +-
>  drivers/ata/sata_promise.c    |  2 +-
>  drivers/ata/sata_sx4.c        |  2 +-
>  drivers/scsi/libsas/sas_ata.c |  2 +-
>  include/linux/libata.h        |  5 +++++
>  11 files changed, 30 insertions(+), 25 deletions(-)
> 

Applied to for-6.2. Thanks !