mbox series

[v2,0/3] Cleanups and improvements

Message ID 20230605105244.1045490-1-dlemoal@kernel.org (mailing list archive)
Headers show
Series Cleanups and improvements | expand

Message

Damien Le Moal June 5, 2023, 10:52 a.m. UTC
Improve ata_change_queue_depth() to have its behavior with libsas
managed devices consistent with libata managed devices. Also add a
couple of simple cleanups to use defined helper functions instead of
open coding device flags checks.

Changes from v1:
 - Improved comments in the code changes introduced in patch 1
 - Fixed typos in the commit message of patch 2 and 3
 - Added Review tags from Hannes and John

Damien Le Moal (3):
  ata: libata-sata: Improve ata_change_queue_depth()
  ata: libata-eh: Use ata_ncq_enabled() in ata_eh_speed_down()
  ata: libata-scsi: Use ata_ncq_supported in ata_scsi_dev_config()

 drivers/ata/libata-eh.c   |  4 +---
 drivers/ata/libata-sata.c | 31 +++++++++++++++++++++----------
 drivers/ata/libata-scsi.c |  2 +-
 3 files changed, 23 insertions(+), 14 deletions(-)