From: Bart Van Assche <bvanassche@acm.org>
To: chensong_2000@189.cn, axboe@kernel.dk
Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] block/blk-rq-qos: introduce macro RQ_QOS_FN for common behaviors in rq_qos*
Date: Tue, 10 Sep 2024 09:56:12 -0700 [thread overview]
Message-ID: <85a71ca6-3011-4bcf-bdb8-cb57e1be23ce@acm.org> (raw)
In-Reply-To: <20240910084238.3543971-1-chensong_2000@189.cn>
On 9/10/24 1:42 AM, chensong_2000@189.cn wrote:
> +#define RQ_QOS_FN(q, fn, ...) \
> + do { \
> + struct rq_qos *rqos; \
> + for_each_rqos(rqos, q) \
> + if (rqos->ops->fn) \
> + rqos->ops->fn(rqos, ##__VA_ARGS__); \
> + } while (0)
I'm not sure whether this patch is a step in the right direction. If
others agree with the approach of this patch, I think we need a better
name for this macro, e.g. CALL_RQ_QOS_FN().
Thanks,
Bart.
prev parent reply other threads:[~2024-09-10 16:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-10 8:42 chensong_2000
2024-09-10 16:56 ` Bart Van Assche [this message]
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=85a71ca6-3011-4bcf-bdb8-cb57e1be23ce@acm.org \
--to=bvanassche@acm.org \
--cc=axboe@kernel.dk \
--cc=chensong_2000@189.cn \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®