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)
This commit is contained in:
Konstantin Belousov 2016-06-23 08:27:38 +00:00
parent a0c93fa361
commit 505cd5d13b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=302130

View File

@ -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)) \