public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] f2fs/009: Add delay after killing socket tool
@ 2025-10-06 10:07 Jan Prusakowski
  2025-10-11  7:15 ` Chao Yu
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Prusakowski @ 2025-10-06 10:07 UTC (permalink / raw)
  To: Zorro Lang, Chao Yu, fstests; +Cc: jaegeuk, linux-f2fs-devel, 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.

Signed-off-by: Jan Prusakowski <jprusakowski@google.com>
---
 tests/f2fs/009 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/f2fs/009 b/tests/f2fs/009
index 7333d484..d4893139 100755
--- a/tests/f2fs/009
+++ b/tests/f2fs/009
@@ -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
-- 
2.51.0.618.g983fd99d29-goog


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-10-11  7:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-06 10:07 [PATCH] f2fs/009: Add delay after killing socket tool Jan Prusakowski
2025-10-11  7:15 ` Chao Yu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox