Skip to content

NVMe related fixes

Keith Busch linux-block linux-nvme 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6irq/affinity: Assign all online CPUs to vectorskernel/irq/affinity.c+6 -32 replies
2/6irq/affinity: Assign offline CPUs a vectorkernel/irq/affinity.c+8 -02 replies
3/6nvme/pci: Start queues after tagset is updateddrivers/nvme/host/pci.c+1 -12 replies
4/6blk-mq: Update queue map when changing queue countblock/blk-mq.c+5 -12 replies
5/6blk-mq: Fix queue freeze deadlockblock/blk-mq.c+67 -125 replies
6/6blk-mq: Remove unused variableblock/blk-mq.c+0 -12 replies

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigSagi Grimberg
1/6R-b R-b
2/6
3/6R-b
4/6R-b R-b
5/6
6/6R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] NVMe related fixes

I've been looking into an old regression origianlly reported here:

http://lists.infradead.org/pipermail/linux-nvme/2016-August/005699.html

The root cause is blk-mq's hot cpu notifier is stuck indefinitely during suspend on requests that entered a stopped hardware context, and that hardware context will not be restarted until suspend completes.

I originally set out to unwind the requests and block on reentry, but blk-mq doesn't support doing that: once a request enters a hardware context, it needs to complete on that context. Since the context won't be starting again, we need to do _something_ with those entered requests, and unfortunately ending them in error is the simplest way to resolve the deadlock.

Alternatively, it might have been nice if we didn't need to freeze at all if we could leverage the new blk_mq_quiesce_queue, but that wouldn't work when the queue map needs to be redone...

Any feedback appreciated. Thanks!

Keith Busch (6):
irq/affinity: Assign all online CPUs to vectors irq/affinity: Assign offline CPUs a vector nvme/pci: Start queues after tagset is updated
blk-mq: Update queue map when changing queue count
blk-mq: Fix freeze deadlock
blk-mq: Remove unused variable

 block/blk-mq.c          | 86 +++++++++++++++++++++++++++++++++++++++++--------
 drivers/nvme/host/pci.c |  2 +-
 kernel/irq/affinity.c   | 17 ++++++++--
 3 files changed, 87 insertions(+), 18 deletions(-)
Signature · 1 line
2.5.5