linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* cleanup request insertation parameters v2
@ 2023-04-12  5:32 Christoph Hellwig
  2023-04-12  5:32 ` [PATCH 01/18] blk-mq: don't plug for head insertions in blk_execute_rq_nowait Christoph Hellwig
                   ` (17 more replies)
  0 siblings, 18 replies; 43+ messages in thread
From: Christoph Hellwig @ 2023-04-12  5:32 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Bart Van Assche, linux-block

Hi Jens,

in context of his latest series Bart commented that it's too hard
to find all spots that do a head insertation into the blk-mq dispatch
queues.  This series collapses various far too deep callchains, drop
two of the three bools and then replaced the final once with a greppable
constant.

This will create some rebased work for Bart of top of the other comments
he got, but I think this will allow us to sort out some of the request
order issues much better while also making the code a lot more readable.

Changes since v1:
 - add back a blk_mq_run_hw_queue in blk_insert_flush that got lost
 - use a __bitwise type for the insert flags
 - sort out header hell a bit
 - various typo fixes

Diffstat:
 b/block/bfq-iosched.c    |   17 +-
 b/block/blk-flush.c      |   15 --
 b/block/blk-mq-cpumap.c  |    1 
 b/block/blk-mq-debugfs.c |    2 
 b/block/blk-mq-pci.c     |    1 
 b/block/blk-mq-sched.c   |  112 ------------------
 b/block/blk-mq-sched.h   |    7 -
 b/block/blk-mq-sysfs.c   |    2 
 b/block/blk-mq-tag.c     |    2 
 b/block/blk-mq-virtio.c  |    1 
 b/block/blk-mq.c         |  285 ++++++++++++++++++++++++++++-------------------
 b/block/blk-mq.h         |   74 ++++++++++--
 b/block/blk-pm.c         |    2 
 b/block/blk-stat.c       |    1 
 b/block/blk-sysfs.c      |    1 
 b/block/elevator.h       |    4 
 b/block/kyber-iosched.c  |    7 -
 b/block/mq-deadline.c    |   13 --
 block/blk-mq-tag.h       |   73 ------------
 19 files changed, 265 insertions(+), 355 deletions(-)

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

end of thread, other threads:[~2023-04-13  6:16 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-12  5:32 cleanup request insertation parameters v2 Christoph Hellwig
2023-04-12  5:32 ` [PATCH 01/18] blk-mq: don't plug for head insertions in blk_execute_rq_nowait Christoph Hellwig
2023-04-12  6:55   ` Damien Le Moal
2023-04-12  5:32 ` [PATCH 02/18] blk-mq: remove blk-mq-tag.h Christoph Hellwig
2023-04-12  6:57   ` Damien Le Moal
2023-04-12  5:32 ` [PATCH 03/18] blk-mq: include <linux/blk-mq.h> in block/blk-mq.h Christoph Hellwig
2023-04-12  6:58   ` Damien Le Moal
2023-04-12  5:32 ` [PATCH 04/18] blk-mq: move more logic into blk_mq_insert_requests Christoph Hellwig
2023-04-12  7:07   ` Damien Le Moal
2023-04-12  5:32 ` [PATCH 05/18] blk-mq: fold blk_mq_sched_insert_requests into blk_mq_dispatch_plug_list Christoph Hellwig
2023-04-12  7:09   ` Damien Le Moal
2023-04-12  5:32 ` [PATCH 06/18] blk-mq: move blk_mq_sched_insert_request to blk-mq.c Christoph Hellwig
2023-04-12  7:14   ` Damien Le Moal
2023-04-12  7:18     ` Damien Le Moal
2023-04-12  5:32 ` [PATCH 07/18] blk-mq: fold __blk_mq_insert_request into blk_mq_insert_request Christoph Hellwig
2023-04-12  7:15   ` Damien Le Moal
2023-04-12  5:32 ` [PATCH 08/18] blk-mq: fold __blk_mq_insert_req_list " Christoph Hellwig
2023-04-12  7:16   ` Damien Le Moal
2023-04-12  7:20     ` Christoph Hellwig
2023-04-12  7:33       ` Damien Le Moal
2023-04-12 11:45         ` Christoph Hellwig
2023-04-13  6:14         ` Christoph Hellwig
2023-04-13  6:16           ` Damien Le Moal
2023-04-12  5:32 ` [PATCH 09/18] blk-mq: remove blk_flush_queue_rq Christoph Hellwig
2023-04-12  7:17   ` Damien Le Moal
2023-04-12  5:32 ` [PATCH 10/18] blk-mq: refactor passthrough vs flush handling in blk_mq_insert_request Christoph Hellwig
2023-04-12  7:22   ` Damien Le Moal
2023-04-12  5:32 ` [PATCH 11/18] blk-mq: refactor the DONTPREP/SOFTBARRIER andling in blk_mq_requeue_work Christoph Hellwig
2023-04-12  7:24   ` Damien Le Moal
2023-04-12  5:32 ` [PATCH 12/18] blk-mq: factor out a blk_mq_get_budget_and_tag helper Christoph Hellwig
2023-04-12  7:26   ` Damien Le Moal
2023-04-12  5:32 ` [PATCH 13/18] blk-mq: fold __blk_mq_try_issue_directly into its two callers Christoph Hellwig
2023-04-12  7:31   ` Damien Le Moal
2023-04-12  5:32 ` [PATCH 14/18] blk-mq: don't run the hw_queue from blk_mq_insert_request Christoph Hellwig
2023-04-12  7:40   ` Damien Le Moal
2023-04-12  5:32 ` [PATCH 15/18] blk-mq: don't run the hw_queue from blk_mq_request_bypass_insert Christoph Hellwig
2023-04-12  7:42   ` Damien Le Moal
2023-04-12  5:32 ` [PATCH 16/18] blk-mq: pass a flags argument to blk_mq_insert_request Christoph Hellwig
2023-04-12  7:45   ` Damien Le Moal
2023-04-12  5:32 ` [PATCH 17/18] blk-mq: pass a flags argument to blk_mq_request_bypass_insert Christoph Hellwig
2023-04-12  7:46   ` Damien Le Moal
2023-04-12  5:32 ` [PATCH 18/18] blk-mq: pass the flags argument to elevator_type->insert_requests Christoph Hellwig
2023-04-12  7:47   ` Damien Le Moal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).