Skip to contentSkip to conversation

f2fs/009: Add delay after killing socket tool

PATCH In review Jan Prusakowski 2 participants 2 messages Oct 6, 2025 – Oct 11, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 f2fs/009: Add delay after killing socket tool

When running the test in a VM on a host with all CPUs busy, the kill command returns before socket tool shuts down. This prevents unmounting the scratch, causing the test to fail.

The added sleep ensures that the socket tool closes before the next test steps.

---
 tests/f2fs/009 | 2 ++
 1 file changed, 2 insertions(+)
tests/f2fs/009 +2 -0
index 7333d484..d4893139 100755
@@ -95,6 +95,7 @@ pid=$!
 sleep 2
 ino=`stat -c '%i' $filename`
 kill $pid >> $seqres.full 2>&1
+sleep 2
 check_links 0 0 $ino
 
 ln -s $SCRATCH_MNT/empty $filename
@@ -127,6 +128,7 @@ pid=$!
 sleep 2
 ino=`stat -c '%i' $filename`
 kill $pid >> $seqres.full 2>&1
+sleep 2
 check_links 0 1 $ino
 
 ln -s $SCRATCH_MNT/empty $filename
Signature · 1 line
2.51.0.618.g983fd99d29-goog
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Jan Prusakowski

When running the test in a VM on a host with all CPUs busy, the kill command returns before socket tool shuts down. This prevents unmounting the scratch, causing the test to fail.

The added sleep ensures that the socket tool closes before the next test steps.

Thanks,