]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
xfs/43[4-6]: implement impatient module reloading
authorDarrick J. Wong <djwong@kernel.org>
Tue, 26 Nov 2024 21:32:50 +0000 (13:32 -0800)
committerZorro Lang <zlang@kernel.org>
Fri, 10 Jan 2025 04:44:03 +0000 (12:44 +0800)
commit9163a3fd9fa13e805df35011ce1348573e9b69c2
tree93f8354401377e6f925f7a5dcaf2e39c430c1cb9
parent0b66f6efd669c39cf37b5069280e8d1e94ff627d
xfs/43[4-6]: implement impatient module reloading

These three tests try to reload the xfs module as a cheap way to detect
leaked inode and dquot objects when the slabs for those object are torn
down during rmmod.  Removal might not succeed, and we don't really care
for that case because we still want to exercise the log recovery code.

However, if (say) the root filesystem is xfs, then removal will never
succeed.  There's no way that waiting 50 seconds(!) per test is going
to change that.  Add a silly helper to do it fast or go home.

Reported-by: sandeen@sandeen.net
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/module
tests/xfs/434
tests/xfs/435
tests/xfs/436