kresults

← Back

nvme-multipath: requeue work fixes

v7.4-rc2-472-gc05380122469

Versions
Author
Qiliang Yuan <qiliang.yuan@linux.dev>
Date
Sun, 15 Nov 2026 02:15:37 +0000
Change-id
20261110-bug-nvme-mpath-set-live-srcu-cbd8965f1457
Thread
20261114-bug-nvme-mpath-set-live-srcu-v3-0-d84651de6334@linux.dev
Mailing lists
LKMLlinux-nvme
Ref
b4/20261114-bug-nvme-mpath-set-live-srcu-v3-0-d84651de6334
Patches
2
Base
v7.4-rc2-470-g7e1392a42ea2 7e1392a42ea2
Report
report.txt
Producer
kdevops-ng 00df8aa, kdevops-ng 58a280c, kdevops-ng 749f19a, kdevops-ng 9133338

Cover letter

34 lines
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@linux.dev>
---
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@linux.dev
v1: https://lore.kernel.org/r/20261110-bug-nvme-mpath-set-live-srcu-v1-1-1f58b405b0f8@linux.dev

---
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(-)

Patches

PatchSubjectAuthorCommit
1/2nvme-multipath: apply delayed_removal_secs changes to a pending removalQiliang Yuan <qiliang.yuan@linux.dev>9a77fee0744b
2/2nvme-multipath: don't wait for a grace period in nvme_mpath_set_live()Qiliang Yuan <qiliang.yuan@linux.dev>c05380122469

Builds

ConfigurationArchCompilerFindingsRecordedProducer
no buildcheckpatch.pl ✓2026-11-19 22:18kdevops-ng 749f19a
blktests, block-layer, guest, nvm-express-driverx86_64gccmerge_config.sh ✓ make ✓ sparse ✓ smatch ✓ blktests 12 7 9 +3 −122026-11-21 17:45kdevops-ng 00df8aa, kdevops-ng 58a280c, kdevops-ng 749f19a, kdevops-ng 9133338

b4

What b4 printed applying the series: how it came to the base, and each base the series would not apply onto first.

Looking up 20261114-bug-nvme-mpath-set-live-srcu-v3-0-d84651de6334@linux.dev
Checking for newer revisions
Grabbing search results from lore.kernel.org
Analyzing 5 messages in the thread
Looking for additional code-review trailers on lore.kernel.org
Analyzing 7 code-review messages
Checking attestation on all messages, may take a moment...
---
  ✓ [PATCH v3 1/2] nvme-multipath: apply delayed_removal_secs changes to a pending removal
    + Link: https://patch.msgid.link/20261114-bug-nvme-mpath-set-live-srcu-v3-1-d84651de6334@linux.dev
  ✓ [PATCH v3 2/2] nvme-multipath: don't wait for a grace period in nvme_mpath_set_live()
    + Link: https://patch.msgid.link/20261114-bug-nvme-mpath-set-live-srcu-v3-2-d84651de6334@linux.dev
  ---
  ✓ Signed: DKIM/linux.dev
---
Total patches: 2
---
 Base: 7e1392a42ea288d70a266f6553fe06f57f8647ea (use --merge-base to override)
Magic: Preparing a sparse worktree
---
Applying: nvme-multipath: apply delayed_removal_secs changes to a pending removal
Applying: nvme-multipath: don't wait for a grace period in nvme_mpath_set_live()
---
Fetching into FETCH_HEAD
You can now merge or checkout FETCH_HEAD
  e.g.: git merge --no-ff -F .git/b4-cover --no-edit FETCH_HEAD --signoff