All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guixin Liu <kanie@linux.alibaba.com>
To: Keith Busch <kbusch@kernel.org>
Cc: axboe@kernel.dk, hch@lst.de, sagi@grimberg.me, kch@nvidia.com,
	linux-nvme@lists.infradead.org
Subject: Re: [PATCH] nvme-multipath: introduce service-time iopolicy
Date: Thu, 7 Nov 2024 10:04:49 +0800	[thread overview]
Message-ID: <62e4bbe2-a23f-48ef-a768-4a258caa9248@linux.alibaba.com> (raw)
In-Reply-To: <ZyuUUokeCSsU_1-Y@kbusch-mbp>


在 2024/11/7 00:07, Keith Busch 写道:
> On Wed, Nov 06, 2024 at 06:34:10PM +0800, Guixin Liu wrote:
>> +	if (READ_ONCE(ns->head->subsys->iopolicy) == NVME_IOPOLICY_ST) {
>> +		atomic_add(blk_rq_bytes(rq), &ns->ctrl->inflight_size);
>> +		nvme_req(rq)->flags |= NVME_MPATH_CNT_IOSIZE;
>> +	}
> ...
>
>>   static inline struct nvme_request *nvme_req(struct request *req)
>> @@ -367,6 +368,7 @@ struct nvme_ctrl {
>>   	struct timer_list anatt_timer;
>>   	struct work_struct ana_work;
>>   	atomic_t nr_active;
>> +	atomic_t inflight_size;
> You're counting bytes, so this should probably be an atomic64_t.

Sure it is, changed in v2, thanks.

Best Regards,

Guixin Liu



      reply	other threads:[~2024-11-07  2:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-06 10:34 [PATCH] nvme-multipath: introduce service-time iopolicy Guixin Liu
2024-11-06 16:07 ` Keith Busch
2024-11-07  2:04   ` Guixin Liu [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=62e4bbe2-a23f-48ef-a768-4a258caa9248@linux.alibaba.com \
    --to=kanie@linux.alibaba.com \
    --cc=axboe@kernel.dk \
    --cc=hch@lst.de \
    --cc=kbusch@kernel.org \
    --cc=kch@nvidia.com \
    --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 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.