Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102572454
D34381.id103244.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
639 B
Referenced Files
None
Subscribers
None
D34381.id103244.diff
View Options
Index: sys/kern/kern_rmlock.c
===================================================================
--- sys/kern/kern_rmlock.c
+++ sys/kern/kern_rmlock.c
@@ -449,17 +449,13 @@
THREAD_NO_SLEEPING();
td->td_critnest++; /* critical_enter(); */
-
atomic_interrupt_fence();
pc = get_pcpu();
-
rm_tracker_add(pc, tracker);
-
sched_pin();
atomic_interrupt_fence();
-
td->td_critnest--;
/*
@@ -517,8 +513,12 @@
return;
td->td_critnest++; /* critical_enter(); */
+ atomic_interrupt_fence();
+
pc = get_pcpu();
rm_tracker_remove(pc, tracker);
+
+ atomic_interrupt_fence();
td->td_critnest--;
sched_unpin();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 15, 5:36 AM (8 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14638919
Default Alt Text
D34381.id103244.diff (639 B)
Attached To
Mode
D34381: rmlock: Add required compiler barriers to _rm_runlock()
Attached
Detach File
Event Timeline
Log In to Comment