Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern don't pass 0 to the pool flags
details: https://anonhg.NetBSD.org/src/rev/45f9dd121e3a
branches: trunk
changeset: 357413:45f9dd121e3a
user: christos <christos%NetBSD.org@localhost>
date: Thu Nov 09 21:57:06 2017 +0000
description:
don't pass 0 to the pool flags
diffstat:
sys/kern/subr_extent.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 4d4aa7cb10fd -r 45f9dd121e3a sys/kern/subr_extent.c
--- a/sys/kern/subr_extent.c Thu Nov 09 21:52:32 2017 +0000
+++ b/sys/kern/subr_extent.c Thu Nov 09 21:57:06 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_extent.c,v 1.85 2017/09/18 13:22:56 jakllsch Exp $ */
+/* $NetBSD: subr_extent.c,v 1.86 2017/11/09 21:57:06 christos Exp $ */
/*-
* Copyright (c) 1996, 1998, 2007 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_extent.c,v 1.85 2017/09/18 13:22:56 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_extent.c,v 1.86 2017/11/09 21:57:06 christos Exp $");
#ifdef _KERNEL
#ifdef _KERNEL_OPT
@@ -175,7 +175,7 @@
}
alloc:
- rp = pool_get(&expool, (flags & EX_WAITOK) ? PR_WAITOK : 0);
+ rp = pool_get(&expool, (flags & EX_WAITOK) ? PR_WAITOK : PR_NOWAIT);
if (rp != NULL)
rp->er_flags = ER_ALLOC;
Home |
Main Index |
Thread Index |
Old Index