summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2024-03-30 12:47:48 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2024-03-30 12:47:48 +0000
commitc59b9f685fc460fc6481c743b3b9e4e7d9044a70 (patch)
tree72e726d4bf37078055f3ff4f69fc55731b7f669e /sys
parent899609a92a8584fe9db006d39465ed9f8bf7c961 (diff)
Document that pmemrange control data are protected by `uvm.fpageqlock'.
Diffstat (limited to 'sys')
-rw-r--r--sys/uvm/uvm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/uvm/uvm.h b/sys/uvm/uvm.h
index 1ed1e493d21..3078d2cfed9 100644
--- a/sys/uvm/uvm.h
+++ b/sys/uvm/uvm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm.h,v 1.71 2022/10/07 05:01:44 deraadt Exp $ */
+/* $OpenBSD: uvm.h,v 1.72 2024/03/30 12:47:47 mpi Exp $ */
/* $NetBSD: uvm.h,v 1.24 2000/11/27 08:40:02 chs Exp $ */
/*
@@ -47,6 +47,7 @@
*
* Locks used to protect struct members in this file:
* Q uvm.pageqlock
+ * F uvm.fpageqlock
*/
struct uvm {
/* vm_page related parameters */
@@ -58,7 +59,7 @@ struct uvm {
struct mutex pageqlock; /* [] lock for active/inactive page q */
struct mutex fpageqlock; /* [] lock for free page q + pdaemon */
boolean_t page_init_done; /* TRUE if uvm_page_init() finished */
- struct uvm_pmr_control pmr_control; /* pmemrange data */
+ struct uvm_pmr_control pmr_control; /* [F] pmemrange data */
/* page daemon trigger */
int pagedaemon; /* daemon sleeps on this */