Module Name: src
Committed By: mlelstv
Date: Sun Aug 23 07:47:52 UTC 2015
Modified Files:
src/sys/dev: dksubr.c
Log Message:
An adaptive mutex is sufficient, the data structures are accessed
by regular threads and by the biodone softint.
This allows diskstart routines to sleep (like cgd).
To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/sys/dev/dksubr.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/dev/dksubr.c
diff -u src/sys/dev/dksubr.c:1.72 src/sys/dev/dksubr.c:1.73
--- src/sys/dev/dksubr.c:1.72 Tue Aug 18 21:26:16 2015
+++ src/sys/dev/dksubr.c Sun Aug 23 07:47:52 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: dksubr.c,v 1.72 2015/08/18 21:26:16 mlelstv Exp $ */
+/* $NetBSD: dksubr.c,v 1.73 2015/08/23 07:47:52 mlelstv Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 1999, 2002, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dksubr.c,v 1.72 2015/08/18 21:26:16 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dksubr.c,v 1.73 2015/08/23 07:47:52 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -90,7 +90,7 @@ dk_init(struct dk_softc *dksc, device_t
void
dk_attach(struct dk_softc *dksc)
{
- mutex_init(&dksc->sc_iolock, MUTEX_DEFAULT, IPL_VM);
+ mutex_init(&dksc->sc_iolock, MUTEX_DEFAULT, IPL_NONE);
dksc->sc_flags |= DKF_INITED;
#ifdef DIAGNOSTIC
dksc->sc_flags |= DKF_WARNLABEL | DKF_LABELSANITY;