summaryrefslogtreecommitdiff
path: root/sys/scsi/sd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-09-20 02:51:53 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-09-20 02:51:53 +0000
commitf19e4847c461b9d198dc6bcd73c07bb762a026e2 (patch)
tree31dd86c4c1ead63e1b288ba001a956ebf3d570fb /sys/scsi/sd.c
parent157f786ffba38897086fd1939522ae520bf25253 (diff)
bufq_drain() does not need to be done in deactivate; we only need
to deactivate transactions we are currently doing. ok dlg
Diffstat (limited to 'sys/scsi/sd.c')
-rw-r--r--sys/scsi/sd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c
index d6cd0fb0093..8e78981de4b 100644
--- a/sys/scsi/sd.c
+++ b/sys/scsi/sd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sd.c,v 1.214 2010/09/12 02:05:54 krw Exp $ */
+/* $OpenBSD: sd.c,v 1.215 2010/09/20 02:51:52 deraadt Exp $ */
/* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */
/*-
@@ -290,7 +290,6 @@ sdactivate(struct device *self, int act)
break;
case DVACT_DEACTIVATE:
sc->flags |= SDF_DYING;
- bufq_drain(&sc->sc_bufq);
scsi_xsh_del(&sc->sc_xsh);
break;
}