summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-07-03 05:09:48 +0000
committerjhb <jhb@FreeBSD.org>2001-07-03 05:09:48 +0000
commitf43dc7e223b904d972a08ea114e0743d001e5a63 (patch)
tree726019257f0c89e974c9b19bb1489a864e52a618 /sys/ia64
parent54186427e0e1a77689aed1524c4470172b069845 (diff)
downloadFreeBSD-src-f43dc7e223b904d972a08ea114e0743d001e5a63.zip
FreeBSD-src-f43dc7e223b904d972a08ea114e0743d001e5a63.tar.gz
Allow Giant to be recursed when a process terminates.
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/vm_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ia64/ia64/vm_machdep.c b/sys/ia64/ia64/vm_machdep.c
index 2ca0292..4f50ba0 100644
--- a/sys/ia64/ia64/vm_machdep.c
+++ b/sys/ia64/ia64/vm_machdep.c
@@ -290,8 +290,8 @@ cpu_exit(p)
PROC_LOCK(p);
mtx_lock_spin(&sched_lock);
- mtx_unlock_flags(&Giant, MTX_NOSWITCH);
- mtx_assert(&Giant, MA_NOTOWNED);
+ while (mtx_owned(&Giant))
+ mtx_unlock_flags(&Giant, MTX_NOSWITCH);
/*
* We have to wait until after releasing all locks before
OpenPOWER on IntegriCloud