Module Name:    src
Committed By:   rmind
Date:           Sat Jan 19 20:42:54 UTC 2019

Modified Files:
        src/sys/kern: subr_thmap.c

Log Message:
thmap: use KM_NOSLEEP for now; might revisit later.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/kern/subr_thmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/subr_thmap.c
diff -u src/sys/kern/subr_thmap.c:1.3 src/sys/kern/subr_thmap.c:1.4
--- src/sys/kern/subr_thmap.c:1.3	Sat Dec 22 21:53:06 2018
+++ src/sys/kern/subr_thmap.c	Sat Jan 19 20:42:54 2019
@@ -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 void	stage_mem_gc(thmap_t *, uint
 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 @@ stage_mem_gc(thmap_t *thmap, uintptr_t a
 {
 	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:

Reply via email to