diff options
| author | 2010-07-03 03:04:55 +0000 | |
|---|---|---|
| committer | 2010-07-03 03:04:55 +0000 | |
| commit | c21a182b7e1e047eddfa58a31dd2d4cc04770ade (patch) | |
| tree | 5cc91404768413620f89c1a18f63dd3521e6ed9b /sys/kern/subr_extent.c | |
| parent | the sedtest regress test requires 200-ish file descriptors, so set a (diff) | |
| download | wireguard-openbsd-c21a182b7e1e047eddfa58a31dd2d4cc04770ade.tar.xz wireguard-openbsd-c21a182b7e1e047eddfa58a31dd2d4cc04770ade.zip | |
explicitly specify flags to malloc and pool_get instead of relying on 0.
This is more clear, and as thib pointed out, the default in softraid was
wrong. ok thib.
Diffstat (limited to 'sys/kern/subr_extent.c')
| -rw-r--r-- | sys/kern/subr_extent.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/subr_extent.c b/sys/kern/subr_extent.c index 234355dd121..1c0101962f2 100644 --- a/sys/kern/subr_extent.c +++ b/sys/kern/subr_extent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_extent.c,v 1.43 2010/06/20 17:57:09 phessler Exp $ */ +/* $OpenBSD: subr_extent.c,v 1.44 2010/07/03 03:04:55 tedu Exp $ */ /* $NetBSD: subr_extent.c,v 1.7 1996/11/21 18:46:34 cgd Exp $ */ /*- @@ -1102,7 +1102,8 @@ extent_alloc_region_descriptor(struct extent *ex, int flags) } alloc: - rp = pool_get(&ex_region_pl, (flags & EX_WAITOK) ? PR_WAITOK : 0); + rp = pool_get(&ex_region_pl, (flags & EX_WAITOK) ? PR_WAITOK : + PR_NOWAIT); if (rp != NULL) rp->er_flags = ER_ALLOC; |
