nvme/052: don't remove the def_nsid namespace during the test
Subsystems (2)
PATCH 1/1 nvme/052: don't remove the def_nsid namespace during the test
Skip def_nsid(1) namespace removal during the test as it will be removed from _remove_nvmet_ns during _nvmet_target_cleanup phase
$ ./check nvme/052
nvme/052 (tr=loop) (Test file-ns creation/deletion under one subsystem) [failed]
runtime 3.273s ... 3.299s
--- tests/nvme/052.out 2024-11-19 19:29:36.873210200 -0500
+++ /root/blktests/results/nodev_tr_loop/nvme/052.out.bad 2024-11-19 21:29:26.016088521 -0500
@@ -1,2 +1,4 @@
Running nvme/052
+common/nvme: line 635: /sys/kernel/config/nvmet//subsystems/blktests-subsystem-1/namespaces/1/enable: No such file or directory
+rmdir: failed to remove '/sys/kernel/config/nvmet//subsystems/blktests-subsystem-1/namespaces/1': No such file or directory
Test complete--- tests/nvme/052 | 2 ++ 1 file changed, 2 insertions(+)
tests/nvme/052 +2 -0
@@ -71,6 +71,8 @@ test() { break fi + [ ${nsid} -eq 1 ] && continue + _remove_nvmet_ns "${def_subsysnqn}" "${nsid}" # wait until async request is processed and ns is removed
Signature · 1 line
2.45.1
Quoted 14 lines · Yi Zhang
Skip
def_nsid(1)namespace removal during the test as it will be removed from_remove_nvmet_nsduring_nvmet_target_cleanupphase$ ./check nvme/052 nvme/052 (tr=loop) (Test file-ns creation/deletion under one subsystem) [failed] runtime 3.273s ... 3.299s --- tests/nvme/052.out 2024-11-19 19:29:36.873210200 -0500 +++ /root/blktests/results/nodev_tr_loop/nvme/052.out.bad 2024-11-19 21:29:26.016088521 -0500 @@ -1,2 +1,4 @@ Running nvme/052 +common/nvme: line 635: /sys/kernel/config/nvmet//subsystems/blktests-subsystem-1/namespaces/1/enable: No such file or directory +rmdir: failed to remove '/sys/kernel/config/nvmet//subsystems/blktests-subsystem-1/namespaces/1': No such file or directory Test complete
Quoted 1 line
Fixes 67e25d7 ("nvme/052: do not create namespace when setting up the target")
Oops, thanks for finding this failure. The test case always fail on my system due to the other kernel issue [1], then I overlooked this failure.
I took a closer look, and found that the failure cause is a missing patch in the first series of he ANA preparation work [2]. I dropped the patch from the first series, and planned to include in the third series. But it was required for the commit 67e25d7 above in the second series. I confirmed that the missing patch avoids the failure on my system. Will send the patch soon.
[1] https://lore.kernel.org/linux-nvme/tqcy3sveity7p56v7ywp7ssyviwcb3w4623cnxj3knoobfcanq@yxgt2mjkbkam/
[2] https://lore.kernel.org/linux-nvme/[email protected]/
Quoted 21 lines
Signed-off-by Yi Zhang <[email protected]>--- tests/nvme/052 | 2 ++ 1 file changed, 2 insertions(+)tests/nvme/052 +2
-0@@ -71,6 +71,8 @@ test() { break fi + [ ${nsid} -eq 1 ] && continue + _remove_nvmet_ns "${def_subsysnqn}" "${nsid}" # wait until async request is processed and ns is removedSignature · 1 line
2.45.1