cvs commit: src/sys/vm swap_pager.c
Christian S.J. Peron
csjp at FreeBSD.org
Tue Jan 8 06:58:42 PST 2008
csjp 2008-01-08 14:58:42 UTC
FreeBSD src repository
Modified files:
sys/vm swap_pager.c
Log:
When MAC is enabled in the kernel, fix a panic triggered by a locking
assertion hit in swapoff_one() when we un-mount a swap partition. We
should be using curthread where we used thread0 before. This change
also replaces the thread argument with a credential argument, as the
MAC framework only requires the cred.
It should be noted that this allows the machine to be rebooted without
panicing with "cannot differ from curthread or NULL" when MAC is enabled.
Submitted by: rwatson
Reviewed by: attilio
MFC after: 2 weeks
Revision Changes Path
1.298 +8 -8 src/sys/vm/swap_pager.c
More information about the cvs-src
mailing list