summaryrefslogtreecommitdiffstats
path: root/sys/dev/ciss/ciss.c
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2007-06-05 05:03:13 +0000
committerscottl <scottl@FreeBSD.org>2007-06-05 05:03:13 +0000
commit1c9a6e53273977a479ca9453b090337ebddadedd (patch)
treef4d77826df4391e1f600f084e9bd5723e669979a /sys/dev/ciss/ciss.c
parentdcba3b4fa8419f3d5a1fbb4a0008976414cb062c (diff)
downloadFreeBSD-src-1c9a6e53273977a479ca9453b090337ebddadedd.zip
FreeBSD-src-1c9a6e53273977a479ca9453b090337ebddadedd.tar.gz
Satisfy witness during shutdown
Diffstat (limited to 'sys/dev/ciss/ciss.c')
-rw-r--r--sys/dev/ciss/ciss.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c
index 281b308..522afa5 100644
--- a/sys/dev/ciss/ciss.c
+++ b/sys/dev/ciss/ciss.c
@@ -521,11 +521,13 @@ ciss_shutdown(device_t dev)
debug_called(1);
+ mtx_lock(&sc->ciss_mtx);
/* flush adapter cache */
ciss_flush_adapter(sc);
if (sc->ciss_soft_reset)
ciss_soft_reset(sc);
+ mtx_unlock(&sc->ciss_mtx);
return(0);
}
OpenPOWER on IntegriCloud