]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vm_page: Consolidate page busy sleep mechanisms
authorMark Johnston <markj@FreeBSD.org>
Mon, 15 Nov 2021 16:35:44 +0000 (11:35 -0500)
committerMark Johnston <markj@FreeBSD.org>
Mon, 29 Nov 2021 14:11:29 +0000 (09:11 -0500)
commitcb081566cf868dccce2f96bf5276b6dc561c842d
tree90bd7e30680db25e8cacd140e79ee31cb9baf3b1
parentfdd27db34802decf062339411e5f84993e733be0
vm_page: Consolidate page busy sleep mechanisms

- Modify vm_page_busy_sleep() and vm_page_busy_sleep_unlocked() to take
  a VM_ALLOC_* flag indicating whether to sleep on shared-busy, and fix
  up callers.
- Modify vm_page_busy_sleep() to return a status indicating whether the
  object lock was dropped, and fix up callers.
- Convert callers of vm_page_sleep_if_busy() to use vm_page_busy_sleep()
  instead.
- Remove vm_page_sleep_if_(x)busy().

No functional change intended.

Obtained from: jeff (object_concurrency patches)
Reviewed by: kib

(cherry picked from commit 87b646630c4892e21446cd096bea6bcaecea33ac)
ObsoleteFiles.inc
share/man/man9/Makefile
share/man/man9/vm_page_busy.9
sys/vm/vm_fault.c
sys/vm/vm_object.c
sys/vm/vm_page.c
sys/vm/vm_page.h