Module Name:    src
Committed By:   ad
Date:           Sat Jan 18 14:02:18 UTC 2020

Modified Files:
        src/sys/dev: md.c

Log Message:
Mark the cdev MPSAFE too.


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/sys/dev/md.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/md.c
diff -u src/sys/dev/md.c:1.82 src/sys/dev/md.c:1.83
--- src/sys/dev/md.c:1.82	Thu Aug 29 16:20:48 2019
+++ src/sys/dev/md.c	Sat Jan 18 14:02:18 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: md.c,v 1.82 2019/08/29 16:20:48 hannken Exp $	*/
+/*	$NetBSD: md.c,v 1.83 2020/01/18 14:02:18 ad Exp $	*/
 
 /*
  * Copyright (c) 1995 Gordon W. Ross, Leo Weppelman.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: md.c,v 1.82 2019/08/29 16:20:48 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: md.c,v 1.83 2020/01/18 14:02:18 ad Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_md.h"
@@ -128,7 +128,7 @@ const struct cdevsw md_cdevsw = {
 	.d_mmap = nommap,
 	.d_kqfilter = nokqfilter,
 	.d_discard = nodiscard,
-	.d_flag = D_DISK
+	.d_flag = D_DISK | D_MPSAFE
 };
 
 static struct dkdriver mddkdriver = {

Reply via email to