summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-05-06 22:40:58 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-05-06 22:40:58 +0000
commit847d83e10919a2a7b94cb430942994d321d2bd0f (patch)
tree79c78e47145c27c7e3058dd77ad1c3e95fa827ce /sys/dev
parentd605a4065447734c931ffbee12ce8ae592d8538c (diff)
count auto-sense reqs as well; krw@ ok
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/osiop.c3
-rw-r--r--sys/dev/ic/osiopvar.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ic/osiop.c b/sys/dev/ic/osiop.c
index e1a54b8942c..c321eca80f6 100644
--- a/sys/dev/ic/osiop.c
+++ b/sys/dev/ic/osiop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: osiop.c,v 1.10 2003/05/06 22:01:43 mickey Exp $ */
+/* $OpenBSD: osiop.c,v 1.11 2003/05/06 22:40:57 mickey Exp $ */
/* $NetBSD: osiop.c,v 1.9 2002/04/05 18:27:54 bouyer Exp $ */
/*
@@ -755,6 +755,7 @@ FREE:
bus_dmamap_sync(sc->sc_dmat, acb->datadma,
0, sizeof(xs->sense), BUS_DMASYNC_PREREAD);
+ sc->sc_tinfo[periph->target].senses++;
acb->status = ACB_S_READY;
TAILQ_INSERT_HEAD(&sc->ready_list, acb, chain);
if (((acb->xsflags & SCSI_POLL) == 0) && ((sc->sc_flags & OSIOP_NODMA) == 0))
diff --git a/sys/dev/ic/osiopvar.h b/sys/dev/ic/osiopvar.h
index 2e9acd7f309..369456cba3e 100644
--- a/sys/dev/ic/osiopvar.h
+++ b/sys/dev/ic/osiopvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: osiopvar.h,v 1.4 2003/05/06 22:01:43 mickey Exp $ */
+/* $OpenBSD: osiopvar.h,v 1.5 2003/05/06 22:40:57 mickey Exp $ */
/* $NetBSD: osiopvar.h,v 1.3 2002/05/14 02:58:35 matt Exp $ */
/*
@@ -179,6 +179,7 @@ struct osiop_acb {
*/
struct osiop_tinfo {
int cmds; /* number of commands processed */
+ int senses; /* number of sense requests */
int dconns; /* number of disconnects */
int touts; /* number of timeouts */
int perrs; /* number of parity errors */