Disable recursion for the process spinlock.
Tested by: pho Discussed with: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 month
This commit is contained in:
parent
257d0dda42
commit
6afb32fc67
@ -968,7 +968,7 @@ mutex_init(void)
|
||||
mtx_init(&blocked_lock, "blocked lock", NULL, MTX_SPIN);
|
||||
blocked_lock.mtx_lock = 0xdeadc0de; /* Always blocked. */
|
||||
mtx_init(&proc0.p_mtx, "process lock", NULL, MTX_DEF | MTX_DUPOK);
|
||||
mtx_init(&proc0.p_slock, "process slock", NULL, MTX_SPIN | MTX_RECURSE);
|
||||
mtx_init(&proc0.p_slock, "process slock", NULL, MTX_SPIN);
|
||||
mtx_init(&proc0.p_statmtx, "pstatl", NULL, MTX_SPIN);
|
||||
mtx_init(&proc0.p_itimmtx, "pitiml", NULL, MTX_SPIN);
|
||||
mtx_init(&proc0.p_profmtx, "pprofl", NULL, MTX_SPIN);
|
||||
|
@ -227,7 +227,7 @@ proc_init(void *mem, int size, int flags)
|
||||
p->p_sched = (struct p_sched *)&p[1];
|
||||
bzero(&p->p_mtx, sizeof(struct mtx));
|
||||
mtx_init(&p->p_mtx, "process lock", NULL, MTX_DEF | MTX_DUPOK);
|
||||
mtx_init(&p->p_slock, "process slock", NULL, MTX_SPIN | MTX_RECURSE);
|
||||
mtx_init(&p->p_slock, "process slock", NULL, MTX_SPIN);
|
||||
mtx_init(&p->p_statmtx, "pstatl", NULL, MTX_SPIN);
|
||||
mtx_init(&p->p_itimmtx, "pitiml", NULL, MTX_SPIN);
|
||||
mtx_init(&p->p_profmtx, "pprofl", NULL, MTX_SPIN);
|
||||
|
Loading…
Reference in New Issue
Block a user