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 use 0 for PR_NOWAIT
details: https://anonhg.NetBSD.org/src/rev/8186586a265c
branches: trunk
changeset: 357417:8186586a265c
user: christos <christos%NetBSD.org@localhost>
date: Thu Nov 09 22:21:27 2017 +0000
description:
Don't use 0 for PR_NOWAIT
diffstat:
sys/kern/uipc_mbuf.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 10b83c9d0bdf -r 8186586a265c sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c Thu Nov 09 22:20:25 2017 +0000
+++ b/sys/kern/uipc_mbuf.c Thu Nov 09 22:21:27 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_mbuf.c,v 1.172 2017/03/31 05:44:05 msaitoh Exp $ */
+/* $NetBSD: uipc_mbuf.c,v 1.173 2017/11/09 22:21:27 christos Exp $ */
/*-
* Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.172 2017/03/31 05:44:05 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.173 2017/11/09 22:21:27 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_mbuftrace.h"
@@ -589,7 +589,7 @@
KASSERT(type != MT_FREE);
m = pool_cache_get(mb_cache,
- nowait == M_WAIT ? PR_WAITOK|PR_LIMITFAIL : 0);
+ nowait == M_WAIT ? PR_WAITOK|PR_LIMITFAIL : PR_NOWAIT);
if (m == NULL)
return NULL;
Home |
Main Index |
Thread Index |
Old Index