[PATCH blktests v1 11/18] nvme/rc: remove correct port from target

Daniel Wagner dwagner at suse.de
Thu Mar 21 02:47:20 PDT 2024


Remove the port from the subsystem the test wants to remove.

Fixes: a12281b8320f ("nvme: introduce nvmet_target_{setup/cleanup} common code")
Signed-off-by: Daniel Wagner <dwagner at suse.de>
---
 tests/nvme/rc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/nvme/rc b/tests/nvme/rc
index ba83f32febb8..d74a5418557d 100644
--- a/tests/nvme/rc
+++ b/tests/nvme/rc
@@ -869,7 +869,7 @@ _nvmet_target_cleanup() {
 		esac
 	done
 
-	_get_nvmet_ports "${def_subsysnqn}" ports
+	_get_nvmet_ports "${subsysnqn}" ports
 
 	for port in "${ports[@]}"; do
 		_remove_nvmet_subsystem_from_port "${port}" "${subsysnqn}"
-- 
2.44.0




More information about the Linux-nvme mailing list