diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2012-01-22 10:46:13 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2012-01-22 10:46:13 +0000 |
commit | 8cb02b792482b0372d518660c600b0e9fab9e267 (patch) | |
tree | 40deffd06a37bc78984c1e42a1dd822ee96ce907 /sys | |
parent | 337cb0dba70d5acd53d6a1120eb17df1cd8487b6 (diff) |
Disable the softraid disk attach hook on detach.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/softraid.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <marco@peereboom.us> * Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org> @@ -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 |