Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151121566
D26374.id76812.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D26374.id76812.diff
View Options
Index: sys/geom/geom_event.c
===================================================================
--- sys/geom/geom_event.c
+++ sys/geom/geom_event.c
@@ -374,6 +374,9 @@
if (epp != NULL)
*epp = ep;
curthread->td_pflags |= TDP_GEOM;
+ thread_lock(curthread);
+ curthread->td_flags |= TDF_ASTPENDING;
+ thread_unlock(curthread);
return (0);
}
Index: sys/kern/subr_trap.c
===================================================================
--- sys/kern/subr_trap.c
+++ sys/kern/subr_trap.c
@@ -138,13 +138,6 @@
MPASS(td->td_su == NULL);
/*
- * If this thread tickled GEOM, we need to wait for the giggling to
- * stop before we return to userland
- */
- if (__predict_false(td->td_pflags & TDP_GEOM))
- g_waitidle();
-
- /*
* Charge system time if profiling.
*/
if (__predict_false(p->p_flag & P_PROFIL))
@@ -289,6 +282,13 @@
ktrcsw(0, 1, __func__);
#endif
}
+
+ /*
+ * If this thread tickled GEOM, we need to wait for the giggling to
+ * stop before we return to userland
+ */
+ if (__predict_false(td->td_pflags & TDP_GEOM))
+ g_waitidle();
#ifdef DIAGNOSTIC
if (p->p_numthreads == 1 && (flags & TDF_NEEDSIGCHK) == 0) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 7, 5:43 AM (4 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31013714
Default Alt Text
D26374.id76812.diff (1 KB)
Attached To
Mode
D26374: Move TDP_GEOM check to ast()
Attached
Detach File
Event Timeline
Log In to Comment