From 8cb02b792482b0372d518660c600b0e9fab9e267 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Sun, 22 Jan 2012 10:46:13 +0000 Subject: Disable the softraid disk attach hook on detach. --- sys/dev/softraid.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/softraid.c') diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index 9977e12051d..ffacbe3250b 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.270 2012/01/22 10:43:50 jsing Exp $ */ +/* $OpenBSD: softraid.c,v 1.271 2012/01/22 10:46:12 jsing Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Marco Peereboom * Copyright (c) 2008 Chris Kuethe @@ -1819,6 +1819,8 @@ sr_detach(struct device *self, int flags) if (sc->sc_shutdownhook) shutdownhook_disestablish(sc->sc_shutdownhook); + softraid_disk_attach = NULL; + sr_shutdown(sc); #ifndef SMALL_KERNEL -- cgit v1.2.3