diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2018-06-27 16:37:26 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2018-06-27 16:37:26 +0000 |
commit | bac6f90bae58d0712d01cbefb0a0988bf489caf2 (patch) | |
tree | f6cf3d102157fb9c0d726bf0c19d3212edf542a2 /sys | |
parent | d8e275f489242371d19d25f01ddd1b10a43d84e6 (diff) |
Raise file_pool's IPL to prevent deadlocks with the newly unlocked
system calls.
OK mpi@
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 38198c17288..bc4e90c294f 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_descrip.c,v 1.171 2018/06/26 14:43:01 visa Exp $ */ +/* $OpenBSD: kern_descrip.c,v 1.172 2018/06/27 16:37:25 visa Exp $ */ /* $NetBSD: kern_descrip.c,v 1.42 1996/03/30 22:24:38 christos Exp $ */ /* @@ -88,7 +88,7 @@ struct pool fdesc_pool; void filedesc_init(void) { - pool_init(&file_pool, sizeof(struct file), 0, IPL_NONE, + pool_init(&file_pool, sizeof(struct file), 0, IPL_MPFLOOR, PR_WAITOK, "filepl", NULL); pool_init(&fdesc_pool, sizeof(struct filedesc0), 0, IPL_NONE, PR_WAITOK, "fdescpl", NULL); |