All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Issue non-NCQ command via EH when NCQ commands in-flight
@ 2024-10-31 14:07 Niklas Cassel
  2024-10-31 14:07 ` [PATCH 1/2] ata: libata: Introduce new helper ata_qc_complete_success() Niklas Cassel
  2024-10-31 14:07 ` [PATCH 2/2] ata: libata: Issue non-NCQ command via EH when NCQ commands in-flight Niklas Cassel
  0 siblings, 2 replies; 7+ messages in thread
From: Niklas Cassel @ 2024-10-31 14:07 UTC (permalink / raw)
  To: Damien Le Moal, Niklas Cassel
  Cc: Hannes Reinecke, Xingui Yang, Yu Kuai, linux-ide

Hello all,

There is a problem when an application is continuously submitting NCQ
commands (e.g. fio with a queue depth greater than 1), this can completely
starve out another application that is sending a non-NCQ command (because
the non-NCQ command will be deferred forever).

Xingui Yang reported this problem here:
https://lore.kernel.org/linux-block/eef1e927-c9b2-c61d-7f48-92e65d8b0418@huawei.com/

This series addresses the reported problem.

Please test!


Kind regards,
Niklas


Niklas Cassel (2):
  ata: libata: Introduce new helper ata_qc_complete_success()
  ata: libata: Issue non-NCQ command via EH when NCQ commands in-flight

 drivers/ata/libata-core.c | 274 ++++++++++++++++++++++++++++++--------
 drivers/ata/libata-eh.c   |  60 ++++++++-
 drivers/ata/libata-scsi.c |  16 ++-
 drivers/ata/libata.h      |   1 +
 include/linux/libata.h    |   8 +-
 5 files changed, 297 insertions(+), 62 deletions(-)

-- 
2.47.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-11-05  9:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-31 14:07 [PATCH 0/2] Issue non-NCQ command via EH when NCQ commands in-flight Niklas Cassel
2024-10-31 14:07 ` [PATCH 1/2] ata: libata: Introduce new helper ata_qc_complete_success() Niklas Cassel
2024-11-05  7:31   ` Hannes Reinecke
2024-10-31 14:07 ` [PATCH 2/2] ata: libata: Issue non-NCQ command via EH when NCQ commands in-flight Niklas Cassel
2024-11-04  4:01   ` yangxingui
2024-11-05  9:33     ` Niklas Cassel
2024-11-05  7:33   ` Hannes Reinecke

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.