From 847d83e10919a2a7b94cb430942994d321d2bd0f Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 6 May 2003 22:40:58 +0000 Subject: count auto-sense reqs as well; krw@ ok --- sys/dev/ic/osiop.c | 3 ++- sys/dev/ic/osiopvar.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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 */ -- cgit v1.2.3