From: Nilay Shroff <nilay@linux.ibm.com>
To: Christoph Hellwig <hch@lst.de>
Cc: linux-nvme@lists.infradead.org, shinichiro.kawasaki@wdc.com,
kbusch@kernel.org, sagi@grimberg.me, axboe@kernel.dk,
chaitanyak@nvidia.com, gjoyce@linux.ibm.com
Subject: Re: [PATCH] nvmet-loop: avoid using mutex in IO hotpath
Date: Mon, 9 Dec 2024 23:07:53 +0530 [thread overview]
Message-ID: <b643ca9e-ca9d-458c-8a8b-e03d97f75bd9@linux.ibm.com> (raw)
In-Reply-To: <20241209080159.GA24776@lst.de>
On 12/9/24 13:31, Christoph Hellwig wrote:
> On Fri, Nov 29, 2024 at 04:18:33PM +0530, Nilay Shroff wrote:
>> - xa_for_each(&ctrl->subsys->namespaces, idx, ns) {
>> + xa_for_each_marked(&ctrl->subsys->namespaces, idx,
>> + ns, NVMET_NS_ENABLED) {
>
> Given that this is duplicated quite a bit, maybe add a
> nvmet_for_each_enabled_ns wrapper for it? And also a nvmet_for_each_ns
> one that iterates all namespaces?
Yeah sure, I will add those wrappers and spin a new patch.
> Otherwise this looks good, and I really like the use of the xarray
> mark to simplify things!
>
Thanks,
--Nilay
prev parent reply other threads:[~2024-12-09 17:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-29 10:48 [PATCH] nvmet-loop: avoid using mutex in IO hotpath Nilay Shroff
2024-12-03 8:38 ` Hannes Reinecke
2024-12-03 8:45 ` Chaitanya Kulkarni
2024-12-09 8:01 ` Christoph Hellwig
2024-12-09 17:37 ` Nilay Shroff [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=b643ca9e-ca9d-458c-8a8b-e03d97f75bd9@linux.ibm.com \
--to=nilay@linux.ibm.com \
--cc=axboe@kernel.dk \
--cc=chaitanyak@nvidia.com \
--cc=gjoyce@linux.ibm.com \
--cc=hch@lst.de \
--cc=kbusch@kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=sagi@grimberg.me \
--cc=shinichiro.kawasaki@wdc.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