]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
accounting: explicitly mark the exiting thread as doing accounting
authorKonstantin Belousov <kib@FreeBSD.org>
Thu, 13 May 2021 23:48:58 +0000 (02:48 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Sat, 22 May 2021 12:16:08 +0000 (15:16 +0300)
commit9bb84c23e762e7d1b6154ef4afdcc80662692e76
treea24d0b8f62a23fb34d72aefb3401d15da5f68b49
parent70c05850e276624bb3eb928fa52160712909ec7b
accounting: explicitly mark the exiting thread as doing accounting

and use the mark to stop applying file size limits on the write of
the accounting record.  This allows to remove hack to clear process
limits in acct_process(), and avoids the bug with the clearing being
ineffective because limits are also cached in the thread structure.

Reported and reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D30257
sys/kern/kern_acct.c
sys/kern/vfs_vnops.c
sys/sys/proc.h