From 36fe06980c4de693c4e63ba30ee873aed0ffdb2a Mon Sep 17 00:00:00 2001 From: haad Date: Tue, 29 Dec 2009 23:37:47 +0000 Subject: Add private lock to dm_dev_t used for mutual exclusion for diks(9) api routines. This change fixes PR kern/42532. --- sys/dev/dm/dm_ioctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/dm/dm_ioctl.c') diff --git a/sys/dev/dm/dm_ioctl.c b/sys/dev/dm/dm_ioctl.c index a51486f2ab6..7d93d7455d5 100644 --- a/sys/dev/dm/dm_ioctl.c +++ b/sys/dev/dm/dm_ioctl.c @@ -1,5 +1,5 @@ -/* $NetBSD: dm_ioctl.c,v 1.17 2009/12/06 14:33:46 haad Exp $ */ +/* $NetBSD: dm_ioctl.c,v 1.18 2009/12/29 23:37:48 haad Exp $ */ /* * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -237,6 +237,7 @@ dm_dev_create_ioctl(prop_dictionary_t dm_dict) dmv->dev_type = 0; mutex_init(&dmv->dev_mtx, MUTEX_DEFAULT, IPL_NONE); + mutex_init(&dmv->diskp_mtx, MUTEX_DEFAULT, IPL_NONE); cv_init(&dmv->dev_cv, "dm_dev"); dm_table_head_init(&dmv->table_head); -- cgit