From: dlg Date: Thu, 25 Aug 2016 00:01:13 +0000 (+0000) Subject: pool_setipl X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e091d7e694e21d531b4b611491076cd98290baec;p=openbsd pool_setipl ok kettenis@ --- diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index 6a6e7257073..a1f5a5050e3 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_cache.c,v 1.49 2016/03/19 12:04:15 natano Exp $ */ +/* $OpenBSD: vfs_cache.c,v 1.50 2016/08/25 00:01:13 dlg Exp $ */ /* $NetBSD: vfs_cache.c,v 1.13 1996/02/04 02:18:09 christos Exp $ */ /* @@ -419,6 +419,7 @@ nchinit(void) TAILQ_INIT(&nclruneghead); pool_init(&nch_pool, sizeof(struct namecache), 0, 0, PR_WAITOK, "nchpl", NULL); + pool_setipl(&nch_pool, IPL_NONE); } /* diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c index cd3b9b53c0a..91853a64e16 100644 --- a/sys/kern/vfs_init.c +++ b/sys/kern/vfs_init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_init.c,v 1.36 2015/03/14 03:38:51 jsg Exp $ */ +/* $OpenBSD: vfs_init.c,v 1.37 2016/08/25 00:01:13 dlg Exp $ */ /* $NetBSD: vfs_init.c,v 1.6 1996/02/09 19:00:58 christos Exp $ */ /* @@ -149,6 +149,7 @@ vfsinit(void) int vfsconflistlen; pool_init(&namei_pool, MAXPATHLEN, 0, 0, PR_WAITOK, "namei", NULL); + pool_setipl(&namei_pool, IPL_NONE); /* Initialize the vnode table. */ vntblinit(); diff --git a/sys/kern/vfs_lockf.c b/sys/kern/vfs_lockf.c index da7fceed57e..1ebb6755f5a 100644 --- a/sys/kern/vfs_lockf.c +++ b/sys/kern/vfs_lockf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_lockf.c,v 1.21 2015/12/22 21:39:34 mmcc Exp $ */ +/* $OpenBSD: vfs_lockf.c,v 1.22 2016/08/25 00:01:13 dlg Exp $ */ /* $NetBSD: vfs_lockf.c,v 1.7 1996/02/04 02:18:21 christos Exp $ */ /* @@ -77,6 +77,7 @@ lf_init(void) { pool_init(&lockfpool, sizeof(struct lockf), 0, 0, PR_WAITOK, "lockfpl", NULL); + pool_setipl(&lockfpool, IPL_NONE); } struct lockf *lf_alloc(uid_t, int); diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 661b5de0597..57342527d6d 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.249 2016/07/22 09:54:09 kettenis Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.250 2016/08/25 00:01:13 dlg Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -145,8 +145,10 @@ vntblinit(void) maxvnodes = 2 * initialvnodes; pool_init(&vnode_pool, sizeof(struct vnode), 0, 0, PR_WAITOK, "vnodes", NULL); + pool_setipl(&vnode_pool, IPL_NONE); pool_init(&uvm_vnode_pool, sizeof(struct uvm_vnode), 0, 0, PR_WAITOK, "uvmvnodes", NULL); + pool_setipl(&uvm_vnode_pool, IPL_NONE); TAILQ_INIT(&vnode_hold_list); TAILQ_INIT(&vnode_free_list); TAILQ_INIT(&mountlist);