Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/linux linux: GFP_ATOMIC, not GFP_NOWAIT



details:   https://anonhg.NetBSD.org/src/rev/afef3ac176b6
branches:  trunk
changeset: 1028814:afef3ac176b6
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 12:07:29 2021 +0000

description:
linux: GFP_ATOMIC, not GFP_NOWAIT

diffstat:

 sys/external/bsd/drm2/linux/linux_radixtree.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b7b5f460ea58 -r afef3ac176b6 sys/external/bsd/drm2/linux/linux_radixtree.c
--- a/sys/external/bsd/drm2/linux/linux_radixtree.c     Sun Dec 19 12:07:20 2021 +0000
+++ b/sys/external/bsd/drm2/linux/linux_radixtree.c     Sun Dec 19 12:07:29 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_radixtree.c,v 1.3 2021/12/19 11:53:26 riastradh Exp $    */
+/*     $NetBSD: linux_radixtree.c,v 1.4 2021/12/19 12:07:29 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_radixtree.c,v 1.3 2021/12/19 11:53:26 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_radixtree.c,v 1.4 2021/12/19 12:07:29 riastradh Exp $");
 
 #include <sys/atomic.h>
 #include <sys/kmem.h>
@@ -63,7 +63,7 @@
        int error;
 
        /* XXX No way to know whether the caller can sleep or not...  */
-       if ((kludge = kzalloc(sizeof(*kludge), GFP_NOWAIT)) == NULL)
+       if ((kludge = kzalloc(sizeof(*kludge), GFP_ATOMIC)) == NULL)
                return -ENOMEM;
 
        kludge->k_key = key;



Home | Main Index | Thread Index | Old Index