diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-09-11 09:26:14 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-09-11 09:26:14 +0000 |
commit | a27e991365187e2e805149dac3daaf370a5dbd14 (patch) | |
tree | ed49d07d1bbebcf9e42f2d559a3bb0ea4faf6704 /sys | |
parent | 19429a44f4e8c64e0794788e336c24c6a0251c69 (diff) |
Now that interrupt-safe uvm maps are porperly locked, the interrupt-safe
multi page backend allocator implementation no longer needs to grab the
kernel lock.
ok mlarkin@, dlg@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/subr_pool.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c index b9325b40d01..757381b77f7 100644 --- a/sys/kern/subr_pool.c +++ b/sys/kern/subr_pool.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_pool.c,v 1.192 2015/09/08 21:28:36 kettenis Exp $ */ +/* $OpenBSD: subr_pool.c,v 1.193 2015/09/11 09:26:13 kettenis Exp $ */ /* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */ /*- @@ -1458,9 +1458,7 @@ pool_multi_alloc(struct pool *pp, int flags, int *slowdown) kd.kd_slowdown = slowdown; s = splvm(); - KERNEL_LOCK(); v = km_alloc(pp->pr_pgsize, &kv, pp->pr_crange, &kd); - KERNEL_UNLOCK(); splx(s); return (v); @@ -1476,9 +1474,7 @@ pool_multi_free(struct pool *pp, void *v) kv.kv_align = pp->pr_pgsize; s = splvm(); - KERNEL_LOCK(); km_free(v, pp->pr_pgsize, &kv, pp->pr_crange); - KERNEL_UNLOCK(); splx(s); } |