Repository navigation
nvme/080: Test nvmet configurable tbkas - #272
Mr-Bossman wants to merge 1 commit into
Conversation
fd95301 to
d172dd8
Compare
d172dd8 to
3b42bc6
Compare
|
@igaw bump |
3b42bc6 to
71b7cd0
Compare
752868d to
b9ac353
Compare
|
Looks good to me! Thanks! Reviewed-by: Daniel Wagner dwagner@suse.de |
kawasaki
left a comment
There was a problem hiding this comment.
@Mr-Bossman Thanks for this PR. When I ran this new test case in my environment with the kernel at Linux master branch tip (git hash e98e45e9465b), it failed. Is this failure expected?
nvme/076 (tr=loop) (Test nvmet configurable traffic based keep-alive (tbkas)) [failed]
runtime ... 15.138s
--- tests/nvme/076.out 2026-11-01 15:30:32.963606124 +0900
+++ /home/shin/Blktests/blktests/results/nodev_tr_loop/nvme/076.out.bad 2026-11-01 15:43:40.574338336 +0900
@@ -1,4 +1,4 @@
Running nvme/076
TBKAS message found in dmesg: pass
-Admin keep-alive message found in dmesg: pass
+Failed to find ctrl number
Test complete
I assume that this test case depends on the kernel commit e98e45e9465b ("nvmet: Add traffic based keep alive support to configfs"). I suggest to mention it in the commit message and the test case head comment block.
Thank you for bumping up the test case numbers (The old test case nvme/075 is still left in the commit message, though). Test case numbers conflict often, so contributors do not need to bump up the test case number alwayas I can bump up the test case number when I apply the new test case. Said that, if you do that, it reduces my chore. So I still appreciate it.
|
I think this is the same issue I had last time with the reconnect time being faster on my test machine than yours. Basically its expecting a ctrl in the nvmet debugfs but didn't find one. I'll keep note if this issue so it doesn't have again. |
b9ac353 to
d2fa613
Compare
d2fa613 to
bd2157f
Compare
|
Hi @Mr-Bossman thank you for updating the patch. I ran the modified test case on the kernel v7.4-fc3, and still observe the failure. The retry logic in get_ctrl_timeout() doesn't look working as expected. With the patch below, the test case passes for rdma, tcp and fc transports. However, still the test case fails with the loop transport: With some debug prints, it looks like the controller is deleted when a value is written to attr_tbkas, then no controller comes back. It this expected for loop transport? If so, the test case doesn't work and the test case should "_require_nvme_trtype tcp rdma fc" instead of "_require_nvme_trtype_is_fabrics". |
It won't work for loop I'm not sure why/how I missed that bc I remember adding "_require_nvme_trtype tcp rdma fc" but i guess I never committed it. Thanks for the check though. I will fix that. |
Test nvmet configurable traffic based keep-alive (tbkas). Uses dynamic debug to monitor the keep-alive messages produced by the traffic based keep-alive or admin keep-alive messages. Checks that the messages are made by the correct controller and that the messages are not sent by another nvmet device. Signed-off-by: Jesse Taube <jtaubepe@redhat.com>
bd2157f to
eaf1524
Compare
Very sorry about that i'm not sure how/why I did that and clearly didn't test either. |
Test nvmet configurable traffic based keep-alive (tbkas). Uses dynamic debug to monitor the keep-alive messages produced by the traffic based keep-alive or admin keep-alive messages. Checks that the messages are made by the correct controller and that the messages are not sent by another nvmet device. Link: #272 Signed-off-by: Jesse Taube <jtaubepe@redhat.com> [Shin'ichiro: renumbered to nvme/081] Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
|
No worries, and thanks for the update! I have renumbered the test case and applied to the master branch manually. Let me close this PR. |
Test nvmet configurable traffic based keep-alive (tbkas). Uses dynamic debug to monitor the keep-alive messages produced by the traffic based keep-alive or admin keep-alive messages. Checks that the messages are made by the correct controller and that the messages are not sent by another nvmet device.