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/54ba5c0234ed
branches:  trunk
changeset: 745767:54ba5c0234ed
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 d7f433b0e4c6 -r 54ba5c0234ed 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