From: dlg Date: Thu, 25 Aug 2016 00:00:02 +0000 (+0000) Subject: pool_setipl X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=86832774ecc2f0ba6caaafb122309ed4aadaa104;p=openbsd pool_setipl ok kettenis@ --- diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 12b12618026..8f00d541b77 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_descrip.c,v 1.133 2016/08/23 23:28:02 tedu Exp $ */ +/* $OpenBSD: kern_descrip.c,v 1.134 2016/08/25 00:00:02 dlg Exp $ */ /* $NetBSD: kern_descrip.c,v 1.42 1996/03/30 22:24:38 christos Exp $ */ /* @@ -85,8 +85,10 @@ filedesc_init(void) { pool_init(&file_pool, sizeof(struct file), 0, 0, PR_WAITOK, "filepl", NULL); + pool_setipl(&file_pool, IPL_NONE); pool_init(&fdesc_pool, sizeof(struct filedesc0), 0, 0, PR_WAITOK, "fdescpl", NULL); + pool_setipl(&fdesc_pool, IPL_NONE); LIST_INIT(&filehead); } diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c index b5ba9202f25..b555914e25d 100644 --- a/sys/kern/kern_event.c +++ b/sys/kern/kern_event.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_event.c,v 1.74 2016/07/14 05:55:08 guenther Exp $ */ +/* $OpenBSD: kern_event.c,v 1.75 2016/08/25 00:00:02 dlg Exp $ */ /*- * Copyright (c) 1999,2000,2001 Jonathan Lemon @@ -165,8 +165,10 @@ kqueue_init(void) pool_init(&kqueue_pool, sizeof(struct kqueue), 0, 0, PR_WAITOK, "kqueuepl", NULL); + pool_setipl(&kqueue_pool, IPL_NONE); pool_init(&knote_pool, sizeof(struct knote), 0, 0, PR_WAITOK, "knotepl", NULL); + pool_setipl(&knote_pool, IPL_NONE); } int diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index bb18000ac04..8dacc1b0d89 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_proc.c,v 1.67 2016/06/27 19:55:02 jca Exp $ */ +/* $OpenBSD: kern_proc.c,v 1.68 2016/08/25 00:00:02 dlg Exp $ */ /* $NetBSD: kern_proc.c,v 1.14 1996/02/09 18:59:41 christos Exp $ */ /* @@ -95,16 +95,22 @@ procinit(void) pool_init(&proc_pool, sizeof(struct proc), 0, 0, PR_WAITOK, "procpl", NULL); + pool_setipl(&proc_pool, IPL_NONE); pool_init(&process_pool, sizeof(struct process), 0, 0, PR_WAITOK, "processpl", NULL); + pool_setipl(&process_pool, IPL_NONE); pool_init(&rusage_pool, sizeof(struct rusage), 0, 0, PR_WAITOK, "zombiepl", NULL); + pool_setipl(&rusage_pool, IPL_NONE); pool_init(&ucred_pool, sizeof(struct ucred), 0, 0, PR_WAITOK, "ucredpl", NULL); + pool_setipl(&ucred_pool, IPL_NONE); pool_init(&pgrp_pool, sizeof(struct pgrp), 0, 0, PR_WAITOK, "pgrppl", NULL); + pool_setipl(&pgrp_pool, IPL_NONE); pool_init(&session_pool, sizeof(struct session), 0, 0, PR_WAITOK, "sessionpl", NULL); + pool_setipl(&session_pool, IPL_NONE); } struct uidinfo * diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index 1bdf149eb00..74a7cc73c34 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_resource.c,v 1.55 2015/12/05 10:11:53 tedu Exp $ */ +/* $OpenBSD: kern_resource.c,v 1.56 2016/08/25 00:00:02 dlg Exp $ */ /* $NetBSD: kern_resource.c,v 1.38 1996/10/23 07:19:38 matthias Exp $ */ /*- @@ -508,6 +508,7 @@ limcopy(struct plimit *lim) if (!initialized) { pool_init(&plimit_pool, sizeof(struct plimit), 0, 0, PR_WAITOK, "plimitpl", NULL); + pool_setipl(&plimit_pool, IPL_NONE); initialized = 1; } diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 374e58d9bc4..4a82a43f764 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sig.c,v 1.202 2016/07/14 05:55:08 guenther Exp $ */ +/* $OpenBSD: kern_sig.c,v 1.203 2016/08/25 00:00:02 dlg Exp $ */ /* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */ /* @@ -154,6 +154,7 @@ signal_init(void) pool_init(&sigacts_pool, sizeof(struct sigacts), 0, 0, PR_WAITOK, "sigapl", NULL); + pool_setipl(&sigacts_pool, IPL_NONE); } /*