* [PATCH blktests 2/2] nvme/{003,041,044,052,057,058,060,062}: update arg for _nvme_connect_subsys
@ 2025-08-22 15:11 Yi Zhang
2025-08-25 17:17 ` Chaitanya Kulkarni
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Yi Zhang @ 2025-08-22 15:11 UTC (permalink / raw)
To: linux-nvme; +Cc: shinichiro.kawasaki, chaitanyak, dwagner
The previous patch changed the default behavior of _nvme_connect_subsys
to wait for the namespace ready, but we have some cases that don't need
to wait for the controller or namespace ready, so add
--no-wait-ns/--no-wait for these cases
Signed-off-by: Yi Zhang <yi.zhang@redhat.com>
---
tests/nvme/003 | 2 +-
tests/nvme/041 | 2 +-
tests/nvme/044 | 4 ++--
tests/nvme/052 | 2 +-
tests/nvme/057 | 2 +-
tests/nvme/058 | 2 +-
tests/nvme/060 | 2 +-
tests/nvme/062 | 2 +-
8 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/tests/nvme/003 b/tests/nvme/003
index 2222ad1..3d1415c 100755
--- a/tests/nvme/003
+++ b/tests/nvme/003
@@ -28,7 +28,7 @@ test() {
_nvmet_target_setup
- _nvme_connect_subsys --port none \
+ _nvme_connect_subsys --port none --no-wait-ns \
--subsysnqn "nqn.2014-08.org.nvmexpress.discovery"
# This is ugly but checking for the absence of error messages is ...
diff --git a/tests/nvme/041 b/tests/nvme/041
index 94f84f1..6855a47 100755
--- a/tests/nvme/041
+++ b/tests/nvme/041
@@ -41,7 +41,7 @@ test() {
# Test unauthenticated connection (should fail)
echo "Test unauthenticated connection (should fail)"
- _nvme_connect_subsys
+ _nvme_connect_subsys --no-wait
_nvme_disconnect_subsys
diff --git a/tests/nvme/044 b/tests/nvme/044
index 7c08328..1352910 100755
--- a/tests/nvme/044
+++ b/tests/nvme/044
@@ -60,7 +60,7 @@ test() {
# and invalid ctrl authentication
echo "Test invalid ctrl authentication (should fail)"
_nvme_connect_subsys --dhchap-secret "${hostkey}" \
- --dhchap-ctrl-secret "${hostkey}"
+ --dhchap-ctrl-secret "${hostkey}" --no-wait
_nvme_disconnect_subsys
@@ -77,7 +77,7 @@ test() {
echo "Test invalid ctrl key (should fail)"
invkey="DHHC-1:00:Jc/My1o0qtLCWRp+sHhAVafdfaS7YQOMYhk9zSmlatobqB8C:"
_nvme_connect_subsys --dhchap-secret "${hostkey}" \
- --dhchap-ctrl-secret "${invkey}"
+ --dhchap-ctrl-secret "${invkey}" --no-wait
_nvme_disconnect_subsys
diff --git a/tests/nvme/052 b/tests/nvme/052
index 22d8a9e..dd498b6 100755
--- a/tests/nvme/052
+++ b/tests/nvme/052
@@ -30,7 +30,7 @@ test() {
_nvmet_target_setup --blkdev none
- _nvme_connect_subsys
+ _nvme_connect_subsys --no-wait-ns
for ((i = 1; i <= iterations; i++)); do
nsid=$((def_nsid + i - 1))
diff --git a/tests/nvme/057 b/tests/nvme/057
index 525193c..db011bc 100755
--- a/tests/nvme/057
+++ b/tests/nvme/057
@@ -65,7 +65,7 @@ test() {
failback "${ports[@]}"
for port in "${ports[@]}"; do
- _nvme_connect_subsys --port "${port}"
+ _nvme_connect_subsys --port "${port}" --no-wait-ns
done
# start fio job
diff --git a/tests/nvme/058 b/tests/nvme/058
index c230045..997ff7f 100755
--- a/tests/nvme/058
+++ b/tests/nvme/058
@@ -81,7 +81,7 @@ test() {
_setup_ana "${ports[@]}"
for port in "${ports[@]}"; do
- _nvme_connect_subsys --port "${port}"
+ _nvme_connect_subsys --port "${port}" --no-wait-ns
done
# Simulate unmap on one cluster node and remap to anther one
diff --git a/tests/nvme/060 b/tests/nvme/060
index 87315c0..997512d 100755
--- a/tests/nvme/060
+++ b/tests/nvme/060
@@ -51,7 +51,7 @@ test() {
# The target reset is triggered with an even number timeout, while the
# host reconnects with an odd number timeout.
for ((i = 0; i <= 5; i++)); do
- _nvme_connect_subsys --keep-alive-tmo 1 --reconnect-delay 1
+ _nvme_connect_subsys --keep-alive-tmo 1 --reconnect-delay 1 --no-wait-ns
sleep 3
_nvme_disconnect_subsys >> "$FULL" 2>&1
done
diff --git a/tests/nvme/062 b/tests/nvme/062
index d7424ac..7c88719 100755
--- a/tests/nvme/062
+++ b/tests/nvme/062
@@ -72,7 +72,7 @@ test() {
# Test unencrypted connection
echo "Test unencrypted connection w/ tls required (should fail)"
- _nvme_connect_subsys
+ _nvme_connect_subsys --no-wait
_nvme_disconnect_subsys
--
2.45.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH blktests 2/2] nvme/{003,041,044,052,057,058,060,062}: update arg for _nvme_connect_subsys
2025-08-22 15:11 [PATCH blktests 2/2] nvme/{003,041,044,052,057,058,060,062}: update arg for _nvme_connect_subsys Yi Zhang
@ 2025-08-25 17:17 ` Chaitanya Kulkarni
2025-08-27 8:10 ` Daniel Wagner
2025-08-28 6:07 ` Shinichiro Kawasaki
2 siblings, 0 replies; 4+ messages in thread
From: Chaitanya Kulkarni @ 2025-08-25 17:17 UTC (permalink / raw)
To: Yi Zhang, linux-nvme@lists.infradead.org
Cc: shinichiro.kawasaki@wdc.com, dwagner@suse.de
On 8/22/25 08:11, Yi Zhang wrote:
> The previous patch changed the default behavior of _nvme_connect_subsys
> to wait for the namespace ready, but we have some cases that don't need
> to wait for the controller or namespace ready, so add
> --no-wait-ns/--no-wait for these cases
>
> Signed-off-by: Yi Zhang<yi.zhang@redhat.com>
Looks good.
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
-ck
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH blktests 2/2] nvme/{003,041,044,052,057,058,060,062}: update arg for _nvme_connect_subsys
2025-08-22 15:11 [PATCH blktests 2/2] nvme/{003,041,044,052,057,058,060,062}: update arg for _nvme_connect_subsys Yi Zhang
2025-08-25 17:17 ` Chaitanya Kulkarni
@ 2025-08-27 8:10 ` Daniel Wagner
2025-08-28 6:07 ` Shinichiro Kawasaki
2 siblings, 0 replies; 4+ messages in thread
From: Daniel Wagner @ 2025-08-27 8:10 UTC (permalink / raw)
To: Yi Zhang; +Cc: linux-nvme, shinichiro.kawasaki, chaitanyak
On Fri, Aug 22, 2025 at 11:11:59AM -0400, Yi Zhang wrote:
> The previous patch changed the default behavior of _nvme_connect_subsys
> to wait for the namespace ready, but we have some cases that don't need
> to wait for the controller or namespace ready, so add
> --no-wait-ns/--no-wait for these cases
Looks okay for the time being. I think we should start to check the
return value from _nvme_connect_subsys and report an error if it isn't
what the test expects.
Reviewed-by: Daniel Wagner <dwagner@suse.de>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH blktests 2/2] nvme/{003,041,044,052,057,058,060,062}: update arg for _nvme_connect_subsys
2025-08-22 15:11 [PATCH blktests 2/2] nvme/{003,041,044,052,057,058,060,062}: update arg for _nvme_connect_subsys Yi Zhang
2025-08-25 17:17 ` Chaitanya Kulkarni
2025-08-27 8:10 ` Daniel Wagner
@ 2025-08-28 6:07 ` Shinichiro Kawasaki
2 siblings, 0 replies; 4+ messages in thread
From: Shinichiro Kawasaki @ 2025-08-28 6:07 UTC (permalink / raw)
To: Yi Zhang
Cc: linux-nvme@lists.infradead.org, chaitanyak@nvidia.com,
dwagner@suse.de
On Aug 22, 2025 / 11:11, Yi Zhang wrote:
> The previous patch changed the default behavior of _nvme_connect_subsys
> to wait for the namespace ready, but we have some cases that don't need
> to wait for the controller or namespace ready, so add
> --no-wait-ns/--no-wait for these cases
>
> Signed-off-by: Yi Zhang <yi.zhang@redhat.com>
I also applied this patch. Thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-08-28 6:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-22 15:11 [PATCH blktests 2/2] nvme/{003,041,044,052,057,058,060,062}: update arg for _nvme_connect_subsys Yi Zhang
2025-08-25 17:17 ` Chaitanya Kulkarni
2025-08-27 8:10 ` Daniel Wagner
2025-08-28 6:07 ` Shinichiro Kawasaki
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).