]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
xfs/444: fix agfl reset warning detection for small log buffers
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:36:05 +0000 (14:36 -0700)
committerZorro Lang <zlang@kernel.org>
Thu, 4 Jul 2024 14:17:42 +0000 (22:17 +0800)
commitd58490eaa83c07dfd169119e5ef8559e0dce19f3
treeb1601e768509e21edc16329b4309c8c8c1ce83d2
parent98611b1acce44dca91c4654fcb339b6f95c2c82a
xfs/444: fix agfl reset warning detection for small log buffers

Collectively, the ten subtests in xfs/444 can generate a lot of kernel
log data.  If the amount of log data is enough to overflow the kernel
log buffers, the AGFL reset warning generated by fix_start and fix_wrap
might have been overwritten by subsequent log data.  Fix this by
checking for the reset warning after each test and only complaining if
at the end if we have /never/ seen the warning.

Found by running on a kernel configured with CONFIG_LOG_BUF_SHIFT=14
(16K).  This happened to be a Raspberry Pi, but in principle this can
happen to anyone.  I'd never noticed this before because x86 helpfully
sets it to 17 (128K) by default.

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/xfs/444