Skip to content

genirq/nvme: add IRQF_RESCUE_THREAD for avoiding IRQ flood

Ming Lei linux-nvme linux-scsi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 60 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4softirq: implement IRQ flood detection mechanismdrivers/base/cpu.c include/linux/hardirq.h kernel/softirq.c+73 -051 replies
2/4genirq: add IRQF_RESCUE_THREADinclude/linux/interrupt.h kernel/irq/handle.c kernel/irq/manage.c+23 -10 replies
3/4nvme: pci: pass IRQF_RESCURE_THREAD to request_threaded_irqdrivers/nvme/host/pci.c+15 -27 replies
4/4genirq: use irq's affinity for threaded irq with IRQF_RESCUE_THREADkernel/irq/manage.c+12 -12 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] genirq/nvme: add IRQF_RESCUE_THREAD for avoiding IRQ flood

Hi Guys,

The 1st patch implements one simple EWMA based mechanism for detecting IRQ flood.

The 2nd patch adds IRQF_RESCUE_THREAD, and interrupts will be handled in the created rescue thread in case that IRQ flood comes.

The 3rd patch applies the flag of IRQF_RESCURE_THREAD for NVMe.

The last patch uses irq's affinity in case of IRQF_RESCUE_THREAD.

Please review & comment!

Long, please test and see if your issue can be fixed.

Ming Lei (4):
softirq: implement IRQ flood detection mechanism
genirq: add IRQF_RESCUE_THREAD
nvme: pci: pass IRQF_RESCURE_THREAD to request_threaded_irq
genirq: use irq's affinity for threaded irq with IRQF_RESCUE_THREAD

 drivers/base/cpu.c        | 25 +++++++++++++++++++++
 drivers/nvme/host/pci.c   | 17 +++++++++++++--
 include/linux/hardirq.h   |  2 ++
 include/linux/interrupt.h |  6 +++++
 kernel/irq/handle.c       |  6 ++++-
 kernel/irq/manage.c       | 25 ++++++++++++++++++++-
 kernel/softirq.c          | 46 +++++++++++++++++++++++++++++++++++++++
 7 files changed, 123 insertions(+), 4 deletions(-)
Cc Long Li <[email protected]>
Cc Ingo Molnar <[email protected]>,
Cc Peter Zijlstra <[email protected]>
Cc Keith Busch <[email protected]>
Cc Jens Axboe <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Sagi Grimberg <[email protected]>
Cc John Garry <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Hannes Reinecke <[email protected]>
Signature · 1 line
2.20.1