Skip to content

improve nvme quiesce time for large amount of namespaces

Sagi Grimberg linux-block linux-nvme 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 37 repliesIn review
  2. v42 patches 2 repliesSuperseded
  3. v32 patches 16 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 RFC4 patches4 repliesSuperseded
v1 RFC4 patches1 replySuperseded

Changes in v5 from the cover letter

- introduce blk_mq_[un]quiesce_tagset as one interface
- move nvme core to use this interface

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2blk-mq: add tagset quiesce interfaceblock/blk-mq.c include/linux/blk-mq.h+70 -033 replies
2/2nvme: use blk_mq_[un]quiesce_tagsetdrivers/nvme/host/core.c+2 -124 replies

Reviews trailers per patch

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

Read the v5 thread

Cover letter [PATCH v5 0/2] improve nvme quiesce time for large amount of namespaces

This set improves the quiesce time when using a large set of namespaces, which also improves I/O failover time in a multipath environment.

We improve for both non-blocking hctxs and blocking hctxs introducing blk_mq_[un]quiesce_tagset which works on all request queues over a given tagset in parallel (which is the case in nvme) for both tagset types (blocking and non-blocking);

Changes from v4:
- introduce blk_mq_[un]quiesce_tagset as one interface
- move nvme core to use this interface

Changes from v3:
- make hctx->rcu_sync dynamically allocated from the heap instead of a static member function

Changes from v2:
- made blk_mq_quiesce_queue_async operate on both blocking and non-blocking hctxs.
- removed separation between blocking vs. non-blocking queues
- dropeed patch from Chao
- dropped nvme-rdma test patch

Changes from v1:
- trivial typo fixes

*** SUBJECT HERE ***

*** BLURB HERE ***

Sagi Grimberg (2):
blk-mq: add tagset quiesce interface
nvme: use blk_mq_[un]quiesce_tagset

 block/blk-mq.c           | 66 ++++++++++++++++++++++++++++++++++++++++
 drivers/nvme/host/core.c | 14 ++-------
 include/linux/blk-mq.h   |  4 +++
 3 files changed, 72 insertions(+), 12 deletions(-)
Signature · 1 line
2.25.1