]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/251: use sentinel files to kill the fstrim loop
authorDarrick J. Wong <djwong@kernel.org>
Tue, 26 Nov 2024 01:22:52 +0000 (17:22 -0800)
committerZorro Lang <zlang@kernel.org>
Thu, 28 Nov 2024 13:39:49 +0000 (21:39 +0800)
commit2d6e7681acff1ec6bfcb76525b648c99676f23f2
treeb17481cb5a0b879b0a9147d9ef6d3e7f93274ead
parentd9352ed5e24a51fead3c5760cddce28262bc9e07
generic/251: use sentinel files to kill the fstrim loop

Apparently the subshell kill doesn't always take, and then the test runs
for hours and hours because nothing stops it.  Instead, use a sentinel
file to detect when fstrim_loop should stop execing background fstrims.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/251