From: Ofir Gal <ofir.gal@volumez.com>
To: Shinichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Cc: "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
"linux-nvme@lists.infradead.org" <linux-nvme@lists.infradead.org>,
"dwagner@suse.de" <dwagner@suse.de>,
"chaitanyak@nvidia.com" <chaitanyak@nvidia.com>
Subject: Re: [PATCH blktests v2 1/2] nvme: move helper functions to common/nvme
Date: Tue, 16 Jul 2024 14:10:19 +0300 [thread overview]
Message-ID: <f0bf01ab-604f-48cb-85f5-e48978579bcf@volumez.com> (raw)
In-Reply-To: <52ac9125-d5a3-4e5c-8708-875c845a05c2@volumez.com>
On 7/16/24 12:23, Ofir Gal wrote:
>>> -_nvme_disconnect_ctrl() {
>>> - local ctrl="$1"
>>> -
>>> - nvme disconnect --device "${ctrl}"
>>> -}
>>> -
>>> _nvme_disconnect_subsys() {
>>> local subsysnqn="$def_subsysnqn"
>>>
>>> @@ -465,141 +206,6 @@ _nvme_disconnect_subsys() {
>>> grep -o "disconnected.*"
>>> }
>>>
>>> -_nvme_connect_subsys() {
>>> - local subsysnqn="$def_subsysnqn"
>>> - local hostnqn="$def_hostnqn"
>>
>> It looks weird that _nvme_connect_subsys() is moved to common/nvme, but
>> _nvme_disconnect_subsys() stays in tests/nvme/rc. I think it's the better to
>> move _nvme_disconnect_subsys() also. Currently, md/001 does not use
>> _nvme_disconnect_subsys(). Isn't it the better to call it in
>> cleanup_nvme_over_tcp()?
>>
> I agree, I would move _nvme_disconnect_subsys() in v3.
> cleanup_nvme_over_tcp() use _nvme_disconnect_ctrl() to disconnect the
> controller by the controller name rather the subsys name. I can change
> it to _nvme_disconnect_subsys() if it's more appropriate.
>
I changed it to _nvme_disconnect_subsys() after using _find_nvme_ns() as
Daniel suggested, will be in v3.
next prev parent reply other threads:[~2024-07-16 11:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-24 10:46 [PATCH blktests v2 0/2] md: add regression test for "md/md-bitmap: fix writing non bitmap pages" Ofir Gal
2024-06-24 10:46 ` [PATCH blktests v2 1/2] nvme: move helper functions to common/nvme Ofir Gal
2024-06-26 11:18 ` Shinichiro Kawasaki
2024-07-16 9:23 ` Ofir Gal
2024-07-16 11:10 ` Ofir Gal [this message]
2024-06-24 10:46 ` [PATCH blktests v2 2/2] md: add regression test for "md/md-bitmap: fix writing non bitmap pages" Ofir Gal
2024-06-25 15:01 ` Daniel Wagner
2024-07-16 11:49 ` Ofir Gal
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=f0bf01ab-604f-48cb-85f5-e48978579bcf@volumez.com \
--to=ofir.gal@volumez.com \
--cc=chaitanyak@nvidia.com \
--cc=dwagner@suse.de \
--cc=linux-block@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--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;
as well as URLs for NNTP newsgroup(s).