diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2018-05-31 11:38:16 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2018-05-31 11:38:16 +0000 |
commit | 676696c0c1318fe15a6f2a0901ca740bdbfaa76d (patch) | |
tree | 4cfe770c71bc4d3e04394b186a287ff63dbe018e /sys | |
parent | 89dfb3cc4d82c4e919f2a024aacd08f577aa239a (diff) |
Use IPL_MPFLOOR for mutexes that can be taken w/ and w/o the KERNEL_LOCK().
From Mathieu <naabed at poolp.org>, ok visa@, tb@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_descrip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 746626bb5f0..ca22f5b94e0 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_descrip.c,v 1.160 2018/05/29 08:28:35 mpi Exp $ */ +/* $OpenBSD: kern_descrip.c,v 1.161 2018/05/31 11:38:15 mpi Exp $ */ /* $NetBSD: kern_descrip.c,v 1.42 1996/03/30 22:24:38 christos Exp $ */ /* @@ -962,7 +962,7 @@ restart: * We need to block interrupts as long as `f_mtx' is being taken * with and without the KERNEL_LOCK(). */ - mtx_init(&fp->f_mtx, IPL_VM); + mtx_init(&fp->f_mtx, IPL_MPFLOOR); fp->f_iflags = FIF_LARVAL; if ((fq = p->p_fd->fd_ofiles[0]) != NULL) { LIST_INSERT_AFTER(fq, fp, f_list); |