All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-devel] [RFC PATCH 0/2] block: support to freeze bio based queue
@ 2021-04-15 10:33 ` Ming Lei
  0 siblings, 0 replies; 35+ messages in thread
From: Ming Lei @ 2021-04-15 10:33 UTC (permalink / raw)
  To: Jens Axboe
  Cc: linux-raid, Mike Snitzer, linux-nvme, Ming Lei, linux-block,
	Song Liu, dm-devel, Jeffle Xu

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

-- 
2.29.2

--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel


^ permalink raw reply	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2021-04-21  7:30 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-15 10:33 [dm-devel] [RFC PATCH 0/2] block: support to freeze bio based queue Ming Lei
2021-04-15 10:33 ` Ming Lei
2021-04-15 10:33 ` Ming Lei
2021-04-15 10:33 ` [dm-devel] [RFC PATCH 1/2] percpu_ref: add percpu_ref_tryget_many_live Ming Lei
2021-04-15 10:33   ` Ming Lei
2021-04-15 10:33   ` Ming Lei
2021-04-15 19:50   ` [dm-devel] " Bart Van Assche
2021-04-15 19:50     ` Bart Van Assche
2021-04-15 19:50     ` Bart Van Assche
2021-04-15 10:33 ` [dm-devel] [RFC PATCH 2/2] block: support to freeze bio based request queue Ming Lei
2021-04-15 10:33   ` Ming Lei
2021-04-15 10:33   ` Ming Lei
2021-04-15 13:40   ` kernel test robot
2021-04-15 13:56   ` [dm-devel] " Ming Lei
2021-04-15 13:56     ` Ming Lei
2021-04-15 13:56     ` Ming Lei
2021-04-15 16:30   ` kernel test robot
2021-04-15 20:16   ` [dm-devel] " Bart Van Assche
2021-04-15 20:16     ` Bart Van Assche
2021-04-15 20:16     ` Bart Van Assche
2021-04-16  1:28     ` Ming Lei
2021-04-16  1:28       ` Ming Lei
2021-04-16  1:28       ` Ming Lei
2021-04-19 12:05   ` JeffleXu
2021-04-19 12:05     ` JeffleXu
2021-04-19 12:05     ` JeffleXu
2021-04-19 13:50     ` Ming Lei
2021-04-19 13:50       ` Ming Lei
2021-04-19 13:50       ` Ming Lei
2021-04-20  7:21       ` JeffleXu
2021-04-20  7:21         ` JeffleXu
2021-04-20  7:21         ` JeffleXu
2021-04-20  7:58         ` Ming Lei
2021-04-20  7:58           ` Ming Lei
2021-04-20  7:58           ` Ming Lei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.