git: bdfd1adc9908 - main - vm: add VM_OBJECT_UNLOCK
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 11 Mar 2023 11:08:42 UTC
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=bdfd1adc9908db7e346002769589bbadc29d344d
commit bdfd1adc9908db7e346002769589bbadc29d344d
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2023-03-07 20:47:44 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2023-03-11 11:08:21 +0000
vm: add VM_OBJECT_UNLOCK
Reviewed by: kib
Reviewed by: markj
Tested by: pho
Differential Revision: https://reviews.freebsd.org/D38964
---
sys/vm/vm_object.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
index 78e7785e513e..0f05d2936cf4 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -267,6 +267,8 @@ extern struct vm_object kernel_object_store;
rw_wowned(&(object)->lock)
#define VM_OBJECT_WUNLOCK(object) \
rw_wunlock(&(object)->lock)
+#define VM_OBJECT_UNLOCK(object) \
+ rw_unlock(&(object)->lock)
#define VM_OBJECT_DROP(object) \
lock_class_rw.lc_unlock(&(object)->lock.lock_object)
#define VM_OBJECT_PICKUP(object, state) \