Module Name:    src
Committed By:   riastradh
Date:           Tue May 23 00:31:43 UTC 2023

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

Log Message:
autoconf(9): Omit config_attach_pseudo kernel lock assertion for now.

Breaks too many things that I didn't test in the branch (cgd, fss,
&c.); let's address all forty-odd cases before turning it on.


To generate a diff of this commit:
cvs rdiff -u -r1.311 -r1.312 src/sys/kern/subr_autoconf.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_autoconf.c
diff -u src/sys/kern/subr_autoconf.c:1.311 src/sys/kern/subr_autoconf.c:1.312
--- src/sys/kern/subr_autoconf.c:1.311	Mon May 22 14:58:22 2023
+++ src/sys/kern/subr_autoconf.c	Tue May 23 00:31:42 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.311 2023/05/22 14:58:22 riastradh Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.312 2023/05/23 00:31:42 riastradh Exp $ */
 
 /*
  * Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.311 2023/05/22 14:58:22 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.312 2023/05/23 00:31:42 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -1994,8 +1994,6 @@ config_attach_pseudo(cfdata_t cf)
 {
 	device_t dev;
 
-	KASSERT(KERNEL_LOCKED_P());
-
 	dev = config_attach_pseudo_acquire(cf, NULL);
 	if (dev == NULL)
 		return dev;

Reply via email to