summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_page.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-06-23 08:27:38 +0000
committerkib <kib@FreeBSD.org>2016-06-23 08:27:38 +0000
commit3fa8aa8e45e52358076eafe4a5f32584caad74b0 (patch)
treea7d83ab880f933a254419397f5ea2287f6ee5df3 /sys/vm/vm_page.h
parent113f2d399881db003b011a131ba80137a4966a4c (diff)
downloadFreeBSD-src-3fa8aa8e45e52358076eafe4a5f32584caad74b0.zip
FreeBSD-src-3fa8aa8e45e52358076eafe4a5f32584caad74b0.tar.gz
Add a comment noting locking regime for vm_page_xunbusy().
Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Approved by: re (gjb)
Diffstat (limited to 'sys/vm/vm_page.h')
-rw-r--r--sys/vm/vm_page.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h
index 0f0b330..c915598 100644
--- a/sys/vm/vm_page.h
+++ b/sys/vm/vm_page.h
@@ -552,6 +552,7 @@ void vm_page_lock_assert_KBI(vm_page_t m, int a, const char *file, int line);
(m)); \
} while (0)
+/* Note: page m's lock must not be owned by the caller. */
#define vm_page_xunbusy(m) do { \
if (!atomic_cmpset_rel_int(&(m)->busy_lock, \
VPB_SINGLE_EXCLUSIVER, VPB_UNBUSIED)) \
OpenPOWER on IntegriCloud