generic: test PF_MEMALLOC interfering with accounting file write

Add a regression test for the bug fixed by commit 10a98cb16d80 ("xfs:
clear PF_MEMALLOC before exiting xfsaild thread").

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Eric Biggers
2020-04-02 20:33:55 -07:00
committed by Eryu Guan
parent 0afa39e891
commit 46adeb1600
5 changed files with 76 additions and 0 deletions
+12
View File
@@ -4184,6 +4184,18 @@ _require_negative_timestamps() {
esac
}
# Require the 'accton' userspace tool and CONFIG_BSD_PROCESS_ACCT=y.
_require_bsd_process_accounting()
{
_require_command "$ACCTON_PROG" accton
$ACCTON_PROG on &> $tmp.test_accton
cat $tmp.test_accton >> $seqres.full
if grep 'Function not implemented' $tmp.test_accton; then
_notrun "BSD process accounting support unavailable"
fi
$ACCTON_PROG off >> $seqres.full
}
init_rc
################################################################################