Skip to content

nvme: fix two kinds of IO hang from removing NSs

Ming Lei linux-block linux-nvme 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 21 repliesIn review
  2. v14 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- don't unfreeze queue which isn't frozen for avoiding warning from percpu_ref_resurrect()

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4blk-mq: add API of blk_mq_unfreeze_queue_forceblock/blk-mq.c block/blk.h block/genhd.c +1 more+29 -50 replies
2/4nvme: add nvme_unfreeze_force()drivers/nvme/host/core.c drivers/nvme/host/nvme.h+19 -30 replies
3/4nvme: unfreeze queues before removing namespacesdrivers/nvme/host/core.c+3 -00 replies
4/4nvme: unquiesce io queues when removing namespacesdrivers/nvme/host/core.c+7 -30 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH V2 0/4] nvme: fix two kinds of IO hang from removing NSs

Hello,

The 1st three patch fixes io hang when controller removal interrupts error recovery, then queue is left as frozen.

The 4th patch fixes io hang when controller is left as unquiesce.

V2:
- don't unfreeze queue which isn't frozen for avoiding warning from percpu_ref_resurrect()

Ming Lei (4):
blk-mq: add API of blk_mq_unfreeze_queue_force
nvme: add nvme_unfreeze_force()
nvme: unfreeze queues before removing namespaces
nvme: unquiesce io queues when removing namespaces

 block/blk-mq.c           | 28 +++++++++++++++++++++++++---
 block/blk.h              |  3 ++-
 block/genhd.c            |  2 +-
 drivers/nvme/host/core.c | 34 ++++++++++++++++++++++++++++------
 drivers/nvme/host/nvme.h |  1 +
 include/linux/blk-mq.h   |  1 +
 6 files changed, 58 insertions(+), 11 deletions(-)
Signature · 1 line
2.40.1