All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] generic/new: drop caches while freeze
@ 2023-12-13  9:20 Murphy Zhou
  2023-12-13 15:34 ` Zorro Lang
  0 siblings, 1 reply; 5+ messages in thread
From: Murphy Zhou @ 2023-12-13  9:20 UTC (permalink / raw)
  To: fstests

Signed-off-by: Murphy Zhou <jencce.kernel@gmail.com>
---
 tests/generic/734     | 34 ++++++++++++++++++++++++++++++++++
 tests/generic/734.out |  2 ++
 2 files changed, 36 insertions(+)
 create mode 100755 tests/generic/734
 create mode 100644 tests/generic/734.out

diff --git a/tests/generic/734 b/tests/generic/734
new file mode 100755
index 00000000..8ca91930
--- /dev/null
+++ b/tests/generic/734
@@ -0,0 +1,34 @@
+#! /bin/bash
+# SPDX-License-Identifier: GPL-2.0
+#
+# FS QA Test 734
+#
+# Test possible deadlock of umount and reclaim memory
+# when there are EOF blocks in files.
+#
+. ./common/preamble
+_begin_fstest freeze auto quick
+
+_supported_fs generic
+_require_scratch
+
+$XFS_IO_PROG -fc "pwrite 0 64k" $SCRATCH_MNT/testfile >> $seqres.full
+cat $SCRATCH_MNT/testfile >> $SCRATCH_MNT/testfile1
+cat $SCRATCH_MNT/testfile >> $SCRATCH_MNT/testfile1
+
+sync
+
+fsfreeze -f $SCRATCH_MNT
+
+# This will hang if bug reproduces
+echo 3 > /proc/sys/vm/drop_caches &
+
+# Manually unfreeze after a while
+sleep 5
+fsfreeze -u $SCRATCH_MNT
+
+wait
+# success, all done
+echo "Silence is golden"
+status=0
+exit
diff --git a/tests/generic/734.out b/tests/generic/734.out
new file mode 100644
index 00000000..4299839b
--- /dev/null
+++ b/tests/generic/734.out
@@ -0,0 +1,2 @@
+QA output created by 734
+Silence is golden
-- 
2.31.1


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

end of thread, other threads:[~2023-12-15 17:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-13  9:20 [PATCH] generic/new: drop caches while freeze Murphy Zhou
2023-12-13 15:34 ` Zorro Lang
2023-12-15  6:21   ` Murphy Zhou
2023-12-15 11:55     ` [PATCH v2] " Murphy Zhou
2023-12-15 17:31       ` Zorro Lang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.