summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatthew <matthew@openbsd.org>2010-09-22 04:52:10 +0000
committermatthew <matthew@openbsd.org>2010-09-22 04:52:10 +0000
commite9b847fbffb2a11a5f5e8bbde31b818a9772de40 (patch)
tree6e28d064c0e89889692501b2c3faea4bdce4ef44
parentFix ramdisks, from Vladimir Kirillov. Thanks! (diff)
downloadwireguard-openbsd-e9b847fbffb2a11a5f5e8bbde31b818a9772de40.tar.xz
wireguard-openbsd-e9b847fbffb2a11a5f5e8bbde31b818a9772de40.zip
Call config_deactivate() on SCSI links in vscsiclose().
ok dlg@
-rw-r--r--sys/dev/vscsi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/vscsi.c b/sys/dev/vscsi.c
index 05267d38e6e..907ea42b41c 100644
--- a/sys/dev/vscsi.c
+++ b/sys/dev/vscsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vscsi.c,v 1.19 2010/09/22 03:51:47 dlg Exp $ */
+/* $OpenBSD: vscsi.c,v 1.20 2010/09/22 04:52:10 matthew Exp $ */
/*
* Copyright (c) 2008 David Gwynne <dlg@openbsd.org>
@@ -562,6 +562,7 @@ vscsiclose(dev_t dev, int flags, int mode, struct proc *p)
vscsi_done(sc, ccb);
}
+ scsi_activate(sc->sc_scsibus, -1, -1, DVACT_DEACTIVATE);
scsi_req_detach(sc->sc_scsibus, -1, -1, DETACH_FORCE);
mtx_enter(&sc->sc_state_mtx);