diff options
-rw-r--r-- | sys/kern/kern_exit.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index a52464e..a52e695 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -238,6 +238,13 @@ retry: mtx_unlock(&Giant); /* + * If this thread tickled GEOM, we need to wait for the giggling to + * stop before we return to userland + */ + if (td->td_pflags & TDP_GEOM) + g_waitidle(); + + /* * Remove ourself from our leader's peer list and wake our leader. */ mtx_lock(&ppeers_lock); |