Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev Don't wait for data buffer.



details:   https://anonhg.NetBSD.org/src/rev/25919b19ef4d
branches:  trunk
changeset: 1008109:25919b19ef4d
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Wed Mar 11 13:48:45 2020 +0000

description:
Don't wait for data buffer.

diffstat:

 sys/dev/cgd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b0e01e556706 -r 25919b19ef4d sys/dev/cgd.c
--- a/sys/dev/cgd.c     Wed Mar 11 13:30:31 2020 +0000
+++ b/sys/dev/cgd.c     Wed Mar 11 13:48:45 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgd.c,v 1.122 2020/03/09 08:33:15 mlelstv Exp $ */
+/* $NetBSD: cgd.c,v 1.123 2020/03/11 13:48:45 mlelstv Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.122 2020/03/09 08:33:15 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.123 2020/03/11 13:48:45 mlelstv Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -636,7 +636,7 @@
        if (data)
                return data;
 
-       return malloc(size, M_DEVBUF, M_WAITOK);
+       return malloc(size, M_DEVBUF, M_NOWAIT);
 }
 
 static void



Home | Main Index | Thread Index | Old Index