Source-Changes-HG archive

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

[src/trunk]: src/sys/kern thmap: use KM_NOSLEEP for now; might revisit later.



details:   https://anonhg.NetBSD.org/src/rev/f37eb9b56bbd
branches:  trunk
changeset: 838474:f37eb9b56bbd
user:      rmind <rmind%NetBSD.org@localhost>
date:      Sat Jan 19 20:42:54 2019 +0000

description:
thmap: use KM_NOSLEEP for now; might revisit later.

diffstat:

 sys/kern/subr_thmap.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r c1640bc2773a -r f37eb9b56bbd sys/kern/subr_thmap.c
--- a/sys/kern/subr_thmap.c     Sat Jan 19 20:02:06 2019 +0000
+++ b/sys/kern/subr_thmap.c     Sat Jan 19 20:42:54 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_thmap.c,v 1.3 2018/12/22 21:53:06 christos Exp $  */
+/*     $NetBSD: subr_thmap.c,v 1.4 2019/01/19 20:42:54 rmind Exp $     */
 
 /*-
  * Copyright (c) 2018 Mindaugas Rasiukevicius <rmind at noxt eu>
@@ -112,7 +112,7 @@
 #include "utils.h"
 #endif
 
-THMAP_RCSID("$NetBSD: subr_thmap.c,v 1.3 2018/12/22 21:53:06 christos Exp $");
+THMAP_RCSID("$NetBSD: subr_thmap.c,v 1.4 2019/01/19 20:42:54 rmind Exp $");
 
 /*
  * NetBSD kernel wrappers
@@ -233,7 +233,7 @@
 static uintptr_t
 alloc_wrapper(size_t len)
 {
-       return (uintptr_t)kmem_intr_alloc(len, KM_SLEEP);
+       return (uintptr_t)kmem_intr_alloc(len, KM_NOSLEEP);
 }
 
 static void
@@ -843,7 +843,7 @@
 {
        thmap_gc_t *head, *gc;
 
-       gc = kmem_intr_alloc(sizeof(thmap_gc_t), KM_SLEEP);
+       gc = kmem_intr_alloc(sizeof(thmap_gc_t), KM_NOSLEEP);
        gc->addr = addr;
        gc->len = len;
 retry:



Home | Main Index | Thread Index | Old Index