Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108360848
D28821.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
579 B
Referenced Files
None
Subscribers
None
D28821.diff
View Options
diff --git a/sys/kern/kern_rmlock.c b/sys/kern/kern_rmlock.c
--- a/sys/kern/kern_rmlock.c
+++ b/sys/kern/kern_rmlock.c
@@ -362,7 +362,11 @@
/* Remove our tracker from the per-cpu list. */
rm_tracker_remove(pc, tracker);
- /* Check to see if the IPI granted us the lock after all. */
+ /*
+ * Check to see if the IPI granted us the lock after all. The load of
+ * rmp_flags must happen after the tracker is removed from the list.
+ */
+ __compiler_membar();
if (tracker->rmp_flags) {
/* Just add back tracker - we hold the lock. */
rm_tracker_add(pc, tracker);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 25, 3:52 AM (20 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16122555
Default Alt Text
D28821.diff (579 B)
Attached To
Mode
D28821: rmlock: Add a missing compiler membar to the rlock slow path
Attached
Detach File
Event Timeline
Log In to Comment