From: Hannes Reinecke <hare@suse.de>
To: Max Gurtovoy <mgurtovoy@nvidia.com>,
hch@lst.de, sagi@grimberg.me, kbusch@kernel.org,
linux-nvme@lists.infradead.org
Cc: axboe@kernel.dk, oren@nvidia.com, ngottlieb@nvidia.com,
israelr@nvidia.com
Subject: Re: [PATCH v2 2/3] nvme-fabrics: check hostid using uuid_equal
Date: Thu, 11 May 2023 20:45:20 +0200 [thread overview]
Message-ID: <ea781287-bf3b-e8e7-28ea-64b49f6a04c2@suse.de> (raw)
In-Reply-To: <20230511165441.30005-3-mgurtovoy@nvidia.com>
On 5/11/23 18:54, Max Gurtovoy wrote:
> Use a dedicated function to match uuids instead of duplicating it.
>
> Tested-by: Noam Gottlieb <ngottlieb@nvidia.com>
> Reviewed-by: Israel Rukshin <israelr@nvidia.com>
> Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
> ---
>
> changes from v1:
> - address comments from Christoph
>
> ---
> drivers/nvme/host/fabrics.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/nvme/host/fabrics.h b/drivers/nvme/host/fabrics.h
> index dcac3df8a5f7..862bc4e5e3d9 100644
> --- a/drivers/nvme/host/fabrics.h
> +++ b/drivers/nvme/host/fabrics.h
> @@ -181,7 +181,7 @@ nvmf_ctlr_matches_baseopts(struct nvme_ctrl *ctrl,
> ctrl->state == NVME_CTRL_DEAD ||
> strcmp(opts->subsysnqn, ctrl->opts->subsysnqn) ||
> strcmp(opts->host->nqn, ctrl->opts->host->nqn) ||
> - memcmp(&opts->host->id, &ctrl->opts->host->id, sizeof(uuid_t)))
> + !uuid_equal(&opts->host->id, &ctrl->opts->host->id))
> return false;
>
> return true;
Reviewed-by: Hannes Reinecke <hare@suse.de>
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Ivo Totev, Andrew
Myers, Andrew McDonald, Martje Boudien Moerman
next prev parent reply other threads:[~2023-05-11 18:45 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-11 16:54 [PATCH v2 0/3] nvme-fabrics: fix un-expected behaviour related to hostnqn and hostid Max Gurtovoy
2023-05-11 16:54 ` [PATCH v2 1/3] nvme-fabrics: unify common code in admin and io queue connect Max Gurtovoy
2023-05-11 18:44 ` Hannes Reinecke
2023-05-12 14:50 ` Christoph Hellwig
2023-05-11 16:54 ` [PATCH v2 2/3] nvme-fabrics: check hostid using uuid_equal Max Gurtovoy
2023-05-11 18:45 ` Hannes Reinecke [this message]
2023-05-12 14:50 ` Christoph Hellwig
2023-05-11 16:54 ` [PATCH v2 3/3] nvme-fabrics: prevent overriding of existing host Max Gurtovoy
2023-05-11 18:50 ` Hannes Reinecke
2023-05-11 19:35 ` Max Gurtovoy
2023-05-11 23:13 ` Hannes Reinecke
2023-05-11 23:20 ` Max Gurtovoy
2023-05-12 14:56 ` Christoph Hellwig
2023-05-12 15:40 ` Max Gurtovoy
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=ea781287-bf3b-e8e7-28ea-64b49f6a04c2@suse.de \
--to=hare@suse.de \
--cc=axboe@kernel.dk \
--cc=hch@lst.de \
--cc=israelr@nvidia.com \
--cc=kbusch@kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=mgurtovoy@nvidia.com \
--cc=ngottlieb@nvidia.com \
--cc=oren@nvidia.com \
--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