Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157985844
D23150.id66682.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
974 B
Referenced Files
None
Subscribers
None
D23150.id66682.diff
View Options
Index: head/sys/compat/linuxkpi/common/src/linux_rcu.c
===================================================================
--- head/sys/compat/linuxkpi/common/src/linux_rcu.c
+++ head/sys/compat/linuxkpi/common/src/linux_rcu.c
@@ -298,14 +298,13 @@
"linux_synchronize_rcu() can sleep");
td = curthread;
+ DROP_GIANT();
/*
* Synchronizing RCU might change the CPU core this function
* is running on. Save current values:
*/
thread_lock(td);
-
- DROP_GIANT();
old_cpu = PCPU_GET(cpuid);
old_pinned = td->td_pinned;
Index: head/sys/kern/subr_epoch.c
===================================================================
--- head/sys/kern/subr_epoch.c
+++ head/sys/kern/subr_epoch.c
@@ -610,8 +610,8 @@
KASSERT(!in_epoch(epoch), ("epoch_wait_preempt() called in the middle "
"of an epoch section of the same epoch"));
#endif
- thread_lock(td);
DROP_GIANT();
+ thread_lock(td);
old_cpu = PCPU_GET(cpuid);
old_pinned = td->td_pinned;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 28, 4:38 AM (12 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33575964
Default Alt Text
D23150.id66682.diff (974 B)
Attached To
Mode
D23150: Code must not unlock a mutex while owning the thread lock.
Attached
Detach File
Event Timeline
Log In to Comment