From: Guixin Liu <kanie@linux.alibaba.com>
To: Chaitanya Kulkarni <chaitanyak@nvidia.com>
Cc: "linux-nvme@lists.infradead.org" <linux-nvme@lists.infradead.org>,
Keith Busch <kbusch@kernel.org>, Jens Axboe <axboe@kernel.dk>,
Christoph Hellwig <hch@lst.de>, Sagi Grimberg <sagi@grimberg.me>
Subject: Re: [PATCH RESEND v3 1/2] nvme-multipath: introduce service-time iopolicy
Date: Fri, 15 Nov 2024 09:42:50 +0800 [thread overview]
Message-ID: <7b4e087f-03b5-42f0-91f9-7393eabbfaf6@linux.alibaba.com> (raw)
In-Reply-To: <b28f56ff-02ba-4fa0-9ee3-329fadac9997@nvidia.com>
在 2024/11/14 18:53, Chaitanya Kulkarni 写道:
> On 11/14/24 00:49, Guixin Liu wrote:
>>
>> +static struct nvme_ns *nvme_service_time_path(struct nvme_ns_head *head)
>> +{
>> + struct nvme_ns *opt = NULL, *nonopt = NULL, *ns;
>> + unsigned int min_inflight_nonopt = UINT_MAX;
>> + unsigned int min_inflight_opt = UINT_MAX;
>> + unsigned int inflight;
>> +
>> + list_for_each_entry_rcu(ns, &head->list, siblings) {
>> + if (nvme_path_is_disabled(ns))
>> + continue;
>> +
>> + inflight = atomic64_read(&ns->ctrl->inflight_size);
> atomic64_read has return type s64, is there any particular reason not to use
> s64 ? OR
>
> even u64 as it is used in many places in kernel ? OR
>
> conversion from s64 to unsigned int is done intentionally ?
>
> -ck
>
Changed in v4, thanks.
Best Regards,
Guixin Liu
next prev parent reply other threads:[~2024-11-15 1:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-14 8:49 [PATCH RESEND v3 0/2] Introduce service-time multipath policy and document Guixin Liu
2024-11-14 8:49 ` [PATCH RESEND v3 1/2] nvme-multipath: introduce service-time iopolicy Guixin Liu
2024-11-14 10:53 ` Chaitanya Kulkarni
2024-11-15 1:42 ` Guixin Liu [this message]
2024-11-14 8:49 ` [PATCH RESEND v3 2/2] docs, nvme: add a nvme-multipath document Guixin Liu
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=7b4e087f-03b5-42f0-91f9-7393eabbfaf6@linux.alibaba.com \
--to=kanie@linux.alibaba.com \
--cc=axboe@kernel.dk \
--cc=chaitanyak@nvidia.com \
--cc=hch@lst.de \
--cc=kbusch@kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=sagi@grimberg.me \
/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