From: Nilay Shroff <nilay@linux.ibm.com>
To: Daniel Wagner <dwagner@suse.de>
Cc: linux-nvme@lists.infradead.org, hare@suse.com, kbusch@kernel.org,
hch@lst.de, gjoyce@ibm.com, wenxiong@linux.ibm.com
Subject: Re: [PATCH 4/9] libnvme: add support for retrieving per-path gendisk I/O statistics
Date: Fri, 3 Apr 2026 21:06:19 +0530 [thread overview]
Message-ID: <c3156dd7-366e-4451-9423-e73ded44a602@linux.ibm.com> (raw)
In-Reply-To: <1e4eb9df-d260-4a72-91e0-b96a2447f6b9@flourine.local>
On 4/1/26 9:12 PM, Daniel Wagner wrote:
> Hi Nilay,
>
> Sorry for the late response.
No worries:-)
>
> On Tue, Mar 24, 2026 at 06:32:59PM +0530, Nilay Shroff wrote:
>> After updating the stat, the caller/nvme-cli invokes nvme_path_get_xxx()
>> APIs to retrieve specific metrics. These APIs also take the current index
>> and compute results by comparing the current and previous statistics.
>
> Let's try to avoid leaking internal implementation details to the public
> API. This makes it unnecessary hard to maintain.
>
> The stats update function could take an argument what it should do:
> - update internal stats, calculate diff -> getters return the diff
> - update internal stats, getters return the absolute value
>
Yes got it.. I think we could do this way. I will give it a shot
and respin a new patchset with the above change.
Thanks,
--Nilay
next prev parent reply other threads:[~2026-04-03 15:37 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-21 15:27 [PATCH 0/9] libnvme: add support for retrieving additional NVMe stat Nilay Shroff
2026-03-21 15:28 ` [PATCH 1/9] libnvme: annotate nvme_path::ana_state with !accessors:none Nilay Shroff
2026-03-24 8:55 ` Daniel Wagner
2026-03-24 13:08 ` Nilay Shroff
2026-03-21 15:28 ` [PATCH 2/9] libnvme: annotate nvme_path::numa_nodes " Nilay Shroff
2026-03-21 15:28 ` [PATCH 3/9] libnvme: annotate nvme_subsystem::iopolicy " Nilay Shroff
2026-03-21 15:28 ` [PATCH 4/9] libnvme: add support for retrieving per-path gendisk I/O statistics Nilay Shroff
2026-03-24 9:05 ` Daniel Wagner
2026-03-24 13:02 ` Nilay Shroff
2026-04-01 15:42 ` Daniel Wagner
2026-04-03 15:36 ` Nilay Shroff [this message]
2026-03-21 15:28 ` [PATCH 5/9] libnvme: add support for retrieving namespace " Nilay Shroff
2026-03-24 9:06 ` Daniel Wagner
2026-03-24 13:12 ` Nilay Shroff
2026-03-21 15:28 ` [PATCH 6/9] libnvme: add support for per-path diagnostic counters Nilay Shroff
2026-03-24 9:18 ` Daniel Wagner
2026-03-24 13:54 ` Nilay Shroff
2026-04-01 15:54 ` Daniel Wagner
2026-04-03 15:47 ` Nilay Shroff
2026-03-21 15:28 ` [PATCH 7/9] libnvme: add support for namespace " Nilay Shroff
2026-03-21 15:28 ` [PATCH 8/9] libnvme: add support for nshead " Nilay Shroff
2026-03-21 15:28 ` [PATCH 9/9] libnvme: add support for ctrl " Nilay Shroff
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=c3156dd7-366e-4451-9423-e73ded44a602@linux.ibm.com \
--to=nilay@linux.ibm.com \
--cc=dwagner@suse.de \
--cc=gjoyce@ibm.com \
--cc=hare@suse.com \
--cc=hch@lst.de \
--cc=kbusch@kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=wenxiong@linux.ibm.com \
/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