From: Christoph Hellwig <hch@lst.de>
To: Bart Van Assche <bvanassche@acm.org>
Cc: Jens Axboe <axboe@kernel.dk>,
linux-block@vger.kernel.org, Jaegeuk Kim <jaegeuk@kernel.org>,
Christoph Hellwig <hch@lst.de>,
Damien Le Moal <damien.lemoal@opensource.wdc.com>,
Ming Lei <ming.lei@redhat.com>, Mike Snitzer <snitzer@kernel.org>
Subject: Re: [PATCH v2 06/12] block: Preserve the order of requeued requests
Date: Tue, 11 Apr 2023 14:43:58 +0200 [thread overview]
Message-ID: <20230411124358.GC14106@lst.de> (raw)
In-Reply-To: <20230407235822.1672286-7-bvanassche@acm.org>
I think this should be merged with the previous patch.
> void blk_mq_kick_requeue_list(struct request_queue *q)
> {
> + blk_mq_run_hw_queues(q, true);
> }
> EXPORT_SYMBOL(blk_mq_kick_requeue_list);
Pleae just remove blk_mq_kick_requeue_list entirely.
>
>
> void blk_mq_delay_kick_requeue_list(struct request_queue *q,
> unsigned long msecs)
> {
> + blk_mq_delay_run_hw_queues(q, msecs);
> }
> EXPORT_SYMBOL(blk_mq_delay_kick_requeue_list);
Same for blk_mq_delay_kick_requeue_list.
> if (!sq_hctx || sq_hctx == hctx ||
> - !list_empty_careful(&hctx->dispatch))
> + blk_mq_hctx_has_pending(hctx))
> blk_mq_run_hw_queue(hctx, async);
> }
> }
> @@ -2353,7 +2341,7 @@ void blk_mq_delay_run_hw_queues(struct request_queue *q, unsigned long msecs)
> * scheduler.
> */
> if (!sq_hctx || sq_hctx == hctx ||
> - !list_empty_careful(&hctx->dispatch))
> + blk_mq_hctx_has_pending(hctx))
This check would probably benefit from being factored into a helper.
next prev parent reply other threads:[~2023-04-11 12:44 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-07 23:58 [PATCH v2 00/12] Submit zoned writes in order Bart Van Assche
2023-04-07 23:58 ` [PATCH v2 01/12] block: Send zoned writes to the I/O scheduler Bart Van Assche
2023-04-10 7:42 ` Damien Le Moal
2023-04-10 16:35 ` Bart Van Assche
2023-04-07 23:58 ` [PATCH v2 02/12] block: Send flush requests " Bart Van Assche
2023-04-10 7:46 ` Damien Le Moal
2023-04-11 0:15 ` Bart Van Assche
2023-04-11 6:38 ` Christoph Hellwig
2023-04-11 17:13 ` Bart Van Assche
2023-04-07 23:58 ` [PATCH v2 03/12] block: Send requeued " Bart Van Assche
2023-04-10 7:53 ` Damien Le Moal
2023-04-10 16:59 ` Bart Van Assche
2023-04-11 12:38 ` Christoph Hellwig
2023-04-11 17:17 ` Bart Van Assche
2023-04-11 13:14 ` Christoph Hellwig
2023-04-07 23:58 ` [PATCH v2 04/12] block: Requeue requests if a CPU is unplugged Bart Van Assche
2023-04-10 7:54 ` Damien Le Moal
2023-04-11 12:40 ` Christoph Hellwig
2023-04-11 17:18 ` Bart Van Assche
2023-04-07 23:58 ` [PATCH v2 05/12] block: One requeue list per hctx Bart Van Assche
2023-04-10 7:58 ` Damien Le Moal
2023-04-10 17:04 ` Bart Van Assche
2023-04-07 23:58 ` [PATCH v2 06/12] block: Preserve the order of requeued requests Bart Van Assche
2023-04-10 8:01 ` Damien Le Moal
2023-04-11 12:43 ` Christoph Hellwig [this message]
2023-04-07 23:58 ` [PATCH v2 07/12] block: Make it easier to debug zoned write reordering Bart Van Assche
2023-04-10 8:06 ` Damien Le Moal
2023-04-07 23:58 ` [PATCH v2 08/12] block: mq-deadline: Simplify deadline_skip_seq_writes() Bart Van Assche
2023-04-10 8:07 ` Damien Le Moal
2023-04-07 23:58 ` [PATCH v2 09/12] block: mq-deadline: Disable head insertion for zoned writes Bart Van Assche
2023-04-10 8:10 ` Damien Le Moal
2023-04-10 17:09 ` Bart Van Assche
2023-04-11 6:44 ` Christoph Hellwig
2023-04-07 23:58 ` [PATCH v2 10/12] block: mq-deadline: Introduce a local variable Bart Van Assche
2023-04-10 8:11 ` Damien Le Moal
2023-04-07 23:58 ` [PATCH v2 11/12] block: mq-deadline: Fix a race condition related to zoned writes Bart Van Assche
2023-04-10 8:16 ` Damien Le Moal
2023-04-10 17:23 ` Bart Van Assche
2023-04-07 23:58 ` [PATCH v2 12/12] block: mq-deadline: Handle requeued requests correctly Bart Van Assche
2023-04-10 8:32 ` Damien Le Moal
2023-04-10 17:31 ` Bart Van Assche
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230411124358.GC14106@lst.de \
--to=hch@lst.de \
--cc=axboe@kernel.dk \
--cc=bvanassche@acm.org \
--cc=damien.lemoal@opensource.wdc.com \
--cc=jaegeuk@kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=ming.lei@redhat.com \
--cc=snitzer@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.