Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern vmem_list_lock needs to be an adaptive lock. Fixes...
details: https://anonhg.NetBSD.org/src/rev/d2e82ccff00b
branches: trunk
changeset: 1009360:d2e82ccff00b
user: ad <ad%NetBSD.org@localhost>
date: Tue Apr 21 17:50:19 2020 +0000
description:
vmem_list_lock needs to be an adaptive lock. Fixes LOCKDEBUG panic.
diffstat:
sys/kern/subr_vmem.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 35d149d6e9ad -r d2e82ccff00b sys/kern/subr_vmem.c
--- a/sys/kern/subr_vmem.c Tue Apr 21 15:04:12 2020 +0000
+++ b/sys/kern/subr_vmem.c Tue Apr 21 17:50:19 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_vmem.c,v 1.102 2020/04/19 21:55:37 ad Exp $ */
+/* $NetBSD: subr_vmem.c,v 1.103 2020/04/21 17:50:19 ad Exp $ */
/*-
* Copyright (c)2006,2007,2008,2009 YAMAMOTO Takashi,
@@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_vmem.c,v 1.102 2020/04/19 21:55:37 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_vmem.c,v 1.103 2020/04/21 17:50:19 ad Exp $");
#if defined(_KERNEL) && defined(_KERNEL_OPT)
#include "opt_ddb.h"
@@ -662,7 +662,7 @@
vmem_bootstrap(void)
{
- mutex_init(&vmem_list_lock, MUTEX_DEFAULT, IPL_VM);
+ mutex_init(&vmem_list_lock, MUTEX_DEFAULT, IPL_NONE);
mutex_init(&vmem_btag_lock, MUTEX_DEFAULT, IPL_VM);
mutex_init(&vmem_btag_refill_lock, MUTEX_DEFAULT, IPL_VM);
Home |
Main Index |
Thread Index |
Old Index