[PATCH v3 0/2] nvme-multipath: requeue work fixes

From: Qiliang Yuan

Date: Sat Nov 14 2026 - 21:16:00 EST


Patch 1 applies a new delayed_removal_secs to a head removal that is
already pending, so that clearing it fails the I/O queued without a
path right away instead of when the old delay expires.

Patch 2 stops nvme_mpath_set_live() from waiting for an SRCU grace
period per namespace, which makes an ANA change with many namespaces
take tens to hundreds of milliseconds.

Signed-off-by: Qiliang Yuan <qiliang.yuan@xxxxxxxxx>
---
V2 -> V3:
- Requeue a pending head removal with the new delayed_removal_secs
instead of only kicking the requeue work when it is cleared, as Nilay
suggested
- Rebase onto v7.4-rc2-470-g7e1392a42ea2 and update the numbers from a
new run
- Don't carry Hannes's Reviewed-by on the v2 patch 1, which is rewritten

V1 -> V2:
- Add patch 1
- Take the SRCU cookie under head->lock in patch 2 (Sashiko)
- Rerun the tests

v2: https://lore.kernel.org/r/20261111-bug-nvme-mpath-set-live-srcu-v2-0-fc772914d293@xxxxxxxxx
v1: https://lore.kernel.org/r/20261110-bug-nvme-mpath-set-live-srcu-v1-1-1f58b405b0f8@xxxxxxxxx

---
Qiliang Yuan (2):
nvme-multipath: apply delayed_removal_secs changes to a pending removal
nvme-multipath: don't wait for a grace period in nvme_mpath_set_live()

drivers/nvme/host/multipath.c | 18 +++++++++++++++++-
drivers/nvme/host/nvme.h | 1 +
2 files changed, 18 insertions(+), 1 deletion(-)
---
base-commit: 7e1392a42ea288d70a266f6553fe06f57f8647ea
change-id: 20261110-bug-nvme-mpath-set-live-srcu-cbd8965f1457

Best regards,
--
Qiliang Yuan <qiliang.yuan@xxxxxxxxx>