Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149385431
D25859.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
704 B
Referenced Files
None
Subscribers
None
D25859.id.diff
View Options
Index: head/sys/vm/vm_page.h
===================================================================
--- head/sys/vm/vm_page.h
+++ head/sys/vm/vm_page.h
@@ -772,8 +772,13 @@
#define VM_PAGE_ASSERT_PGA_WRITEABLE(m, bits) \
vm_page_assert_pga_writeable(m, bits)
#define vm_page_xbusy_claim(m) do { \
+ u_int _busy_lock; \
+ \
vm_page_assert_xbusied_unchecked((m)); \
- (m)->busy_lock = VPB_CURTHREAD_EXCLUSIVE; \
+ do { \
+ _busy_lock = atomic_load_int(&(m)->busy_lock); \
+ } while (!atomic_cmpset_int(&(m)->busy_lock, _busy_lock, \
+ (_busy_lock & VPB_BIT_FLAGMASK) | VPB_CURTHREAD_EXCLUSIVE)); \
} while (0)
#else
#define VM_PAGE_OBJECT_BUSY_ASSERT(m) (void)0
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 25, 2:56 AM (14 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30293457
Default Alt Text
D25859.id.diff (704 B)
Attached To
Mode
D25859: vm_page_xbusy_claim(): Use atomics to update busy lock state.
Attached
Detach File
Event Timeline
Log In to Comment