public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
From: Jan Prusakowski <jprusakowski@google.com>
To: Zorro Lang <zlang@kernel.org>, Chao Yu <chao@kernel.org>,
	fstests@vger.kernel.org
Cc: jaegeuk@kernel.org, linux-f2fs-devel@lists.sourceforge.net,
	 Jan Prusakowski <jprusakowski@google.com>
Subject: [PATCH] f2fs/009: Add delay after killing socket tool
Date: Mon,  6 Oct 2025 12:07:13 +0200	[thread overview]
Message-ID: <20251006100713.3501501-1-jprusakowski@google.com> (raw)

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


             reply	other threads:[~2025-10-06 10:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-06 10:07 Jan Prusakowski [this message]
2025-10-11  7:15 ` [PATCH] f2fs/009: Add delay after killing socket tool Chao Yu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251006100713.3501501-1-jprusakowski@google.com \
    --to=jprusakowski@google.com \
    --cc=chao@kernel.org \
    --cc=fstests@vger.kernel.org \
    --cc=jaegeuk@kernel.org \
    --cc=linux-f2fs-devel@lists.sourceforge.net \
    --cc=zlang@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox