summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2010-09-22 04:52:11 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2010-09-22 04:52:11 +0000
commitf50165a4a2043265b68378204fad1bab7d9e9d42 (patch)
tree17118a36414dae232aa68b24f55ab8d6758138fe /sys/dev
parent8be6cefcc639f27cda89f0dfc10793c27f7a6955 (diff)
Call config_deactivate() on SCSI links in vscsiclose().
ok dlg@
Diffstat (limited to 'sys/dev')
-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);