Skip to contentSkip to conversation

common/multipath-over-rdma: Remove unused debug operation

PATCH Applied Xiao Yang 2 participants 2 messages May 17, 2022 Block layer

lore
Share & tools
lore

Xiao Yang

author
#0 lore raw

PATCH 1/1 common/multipath-over-rdma: Remove unused debug operation

The loop ("for m in ;") will never be entered and it seems unnecessary to debug sereval modules during test. So I try to remove the debug operation.

---
 common/multipath-over-rdma | 6 ------
 1 file changed, 6 deletions(-)
common/multipath-over-rdma +0 -6
index cef05ec..8b285e6 100644
@@ -655,12 +655,6 @@ setup_test() {
 		fi
 	)
 
-	if [ -d /sys/kernel/debug/dynamic_debug ]; then
-		for m in ; do
-			echo "module $m +pmf" >/sys/kernel/debug/dynamic_debug/control
-		done
-	fi
-
 	setup_rdma || return $?
 	start_target || return $?
 	echo "Test setup finished" >>"$FULL"
Signature · 1 line
2.34.1
#1 lore raw
Quoted 28 lines · Xiao Yang

The loop ("for m in ;") will never be entered and it seems unnecessary to debug sereval modules during test. So I try to remove the debug operation.

---
 common/multipath-over-rdma | 6 ------
 1 file changed, 6 deletions(-)
common/multipath-over-rdma +0 -6
index cef05ec..8b285e6 100644
@@ -655,12 +655,6 @@ setup_test() {
 		fi
 	)
 
-	if [ -d /sys/kernel/debug/dynamic_debug ]; then
-		for m in ; do
-			echo "module $m +pmf" >/sys/kernel/debug/dynamic_debug/control
-		done
-	fi
-
 	setup_rdma || return $?
 	start_target || return $?
 	echo "Test setup finished" >>"$FULL"
Signature · 1 line
2.34.1

Thanks, applied.