diff options
author | 2012-01-22 10:46:12 +0000 | |
---|---|---|
committer | 2012-01-22 10:46:12 +0000 | |
commit | 71eb9fc8dec5f55130505846058b38ef18a09a0d (patch) | |
tree | 31a9487e2ec5e0d9649bc5a43687b8e2470fcb2c /sys/dev/softraid.c | |
parent | Ensure that the sc_lock is held before the status functions are called. (diff) | |
download | wireguard-openbsd-71eb9fc8dec5f55130505846058b38ef18a09a0d.tar.xz wireguard-openbsd-71eb9fc8dec5f55130505846058b38ef18a09a0d.zip |
Disable the softraid disk attach hook on detach.
Diffstat (limited to 'sys/dev/softraid.c')
-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 |