Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/xenbus process_msg() is called from thread cont...
details: https://anonhg.NetBSD.org/src/rev/b365ed8fa1be
branches: trunk
changeset: 369802:b365ed8fa1be
user: bouyer <bouyer%NetBSD.org@localhost>
date: Thu Sep 01 16:25:18 2022 +0000
description:
process_msg() is called from thread context, so malloc() can wait for
memory. Should avoids occasional ENOMEM reading messages
diffstat:
sys/arch/xen/xenbus/xenbus_xs.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r af403b6a4834 -r b365ed8fa1be sys/arch/xen/xenbus/xenbus_xs.c
--- a/sys/arch/xen/xenbus/xenbus_xs.c Thu Sep 01 15:33:23 2022 +0000
+++ b/sys/arch/xen/xenbus/xenbus_xs.c Thu Sep 01 16:25:18 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xenbus_xs.c,v 1.27 2020/05/06 16:50:13 bouyer Exp $ */
+/* $NetBSD: xenbus_xs.c,v 1.28 2022/09/01 16:25:18 bouyer Exp $ */
/******************************************************************************
* xenbus_xs.c
*
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xenbus_xs.c,v 1.27 2020/05/06 16:50:13 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xenbus_xs.c,v 1.28 2022/09/01 16:25:18 bouyer Exp $");
#if 0
#define DPRINTK(fmt, args...) \
@@ -719,7 +719,7 @@
char *body;
int err;
- msg = malloc(sizeof(*msg), M_DEVBUF, M_NOWAIT);
+ msg = malloc(sizeof(*msg), M_DEVBUF, M_WAITOK);
if (msg == NULL)
return ENOMEM;
Home |
Main Index |
Thread Index |
Old Index