Module Name: src
Committed By: christos
Date: Fri Jan 7 19:52:18 UTC 2011
Modified Files:
src/sys/dev/raidframe: rf_netbsdkintf.c
Log Message:
PR/44340: Brian Buhrow: Raid sets containing wedges cannot be unconfigured
and reconfigured without a reboot.
To generate a diff of this commit:
cvs rdiff -u -r1.279 -r1.280 src/sys/dev/raidframe/rf_netbsdkintf.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/raidframe/rf_netbsdkintf.c
diff -u src/sys/dev/raidframe/rf_netbsdkintf.c:1.279 src/sys/dev/raidframe/rf_netbsdkintf.c:1.280
--- src/sys/dev/raidframe/rf_netbsdkintf.c:1.279 Wed Dec 22 00:51:19 2010
+++ src/sys/dev/raidframe/rf_netbsdkintf.c Fri Jan 7 14:52:18 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.279 2010/12/22 05:51:19 christos Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.280 2011/01/07 19:52:18 christos Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2008 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -139,7 +139,7 @@
***********************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.279 2010/12/22 05:51:19 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.280 2011/01/07 19:52:18 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -993,6 +993,7 @@
rs->sc_flags &= ~(RAIDF_INITED|RAIDF_SHUTDOWN);
/* Detach the disk. */
+ dkwedge_delall(&rs->sc_dkdev);
disk_detach(&rs->sc_dkdev);
disk_destroy(&rs->sc_dkdev);