Skip to content

RFC block: support to freeze bio based queue

Ming Lei dm-devel linux-block linux-nvme linux-raid oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2percpu_ref: add percpu_ref_tryget_many_liveinclude/linux/percpu-refcount.h+26 -41 reply
2/2block: support to freeze bio based request queueblock/bio.c block/blk-core.c drivers/nvme/host/core.c +4 more+58 -97 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchBart Van Assche
1/2R-b
2/2

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

Read the v1 thread

Cover letter [RFC PATCH 0/2] block: support to freeze bio based queue

Hello,

For bio based request queue, the queue usage refcnt is only grabbed during submission, which isn't consistent with request base queue.

Queue freezing has been used widely, and turns out it is very useful to quiesce queue activity.

So try to support to freeze bio based queue by ->q_usage_counter.

Any comment are welcome!

Ming Lei (2):
percpu_ref: add percpu_ref_tryget_many_live
block: support to freeze bio based request queue

 block/bio.c                     | 12 ++++++++++--
 block/blk-core.c                | 23 +++++++++++++++++------
 drivers/nvme/host/core.c        | 16 ++++++++++++++++
 drivers/nvme/host/multipath.c   |  6 ++++++
 include/linux/blk-mq.h          |  2 ++
 include/linux/blk_types.h       |  1 +
 include/linux/blkdev.h          |  7 ++++++-
 include/linux/percpu-refcount.h | 30 ++++++++++++++++++++++++++----
 8 files changed, 84 insertions(+), 13 deletions(-)
Signature · 1 line
2.29.2