From 079ad427beb4200db54c59a602692de8ee5ae963 Mon Sep 17 00:00:00 2001 From: mpi Date: Sat, 30 Mar 2024 12:47:47 +0000 Subject: [PATCH] Document that pmemrange control data are protected by `uvm.fpageqlock'. --- sys/uvm/uvm.h | 5 +++-- 1 file 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 */ -- 2.20.1