]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Account the size of the vslock-ed memory by the thread.
authorKonstantin Belousov <kib@FreeBSD.org>
Sat, 24 Mar 2018 13:51:27 +0000 (13:51 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Sat, 24 Mar 2018 13:51:27 +0000 (13:51 +0000)
commited9e8bc4681f06db333ea9d4a301de3e18f79ac1
tree5395b7ee10496b75e070eea943a4c07d04a19942
parent63b5d112b6d1fe36adf2f1c12e98df2c35117086
Account the size of the vslock-ed memory by the thread.
Assert that all such memory is unwired on return to usermode.

The count of the wired memory will be used to detect the copyout mode.

Tested by: pho (as part of the larger patch)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/kern/kern_thread.c
sys/kern/subr_trap.c
sys/sys/proc.h
sys/vm/vm_glue.c