summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-03-08 08:01:31 +0000
committerphk <phk@FreeBSD.org>2003-03-08 08:01:31 +0000
commite01fc931cfd9bda87619e5079027111673291cd0 (patch)
tree040efa2f46ce483cf5b045724c67c81b1d43d147 /sys/ia64
parenta7246ed45b4e70820cc609b9abd0dc340fd24782 (diff)
downloadFreeBSD-src-e01fc931cfd9bda87619e5079027111673291cd0.zip
FreeBSD-src-e01fc931cfd9bda87619e5079027111673291cd0.tar.gz
Centralize the devstat handling for all GEOM disk device drivers
in geom_disk.c. As a side effect this makes a lot of #include <sys/devicestat.h> lines not needed and some biofinish() calls can be reduced to biodone() again.
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/ia64/autoconf.c1
-rw-r--r--sys/ia64/ia64/sscdisk.c10
2 files changed, 1 insertions, 10 deletions
diff --git a/sys/ia64/ia64/autoconf.c b/sys/ia64/ia64/autoconf.c
index 65da451..dcfd1b0 100644
--- a/sys/ia64/ia64/autoconf.c
+++ b/sys/ia64/ia64/autoconf.c
@@ -39,7 +39,6 @@
#include <sys/mount.h>
#include <sys/sysctl.h>
#include <sys/bus.h>
-#include <sys/devicestat.h>
#include <sys/cons.h>
#include <machine/md_var.h>
diff --git a/sys/ia64/ia64/sscdisk.c b/sys/ia64/ia64/sscdisk.c
index 3943cbd..8895ba4 100644
--- a/sys/ia64/ia64/sscdisk.c
+++ b/sys/ia64/ia64/sscdisk.c
@@ -17,7 +17,6 @@
#include <sys/systm.h>
#include <sys/bio.h>
#include <sys/conf.h>
-#include <sys/devicestat.h>
#include <sys/disk.h>
#include <sys/kernel.h>
#include <sys/linker.h>
@@ -89,7 +88,6 @@ static LIST_HEAD(, ssc_s) ssc_softc_list = LIST_HEAD_INITIALIZER(&ssc_softc_list
struct ssc_s {
int unit;
LIST_ENTRY(ssc_s) list;
- struct devstat stats;
struct bio_queue_head bio_queue;
struct disk disk;
dev_t dev;
@@ -137,8 +135,6 @@ sscstrategy(struct bio *bp)
if (!bp)
break;
- devstat_start_transaction(&sc->stats);
-
if (bp->bio_cmd == BIO_READ) {
dop = DEVSTAT_READ;
sscop = SSC_READ;
@@ -169,7 +165,7 @@ sscstrategy(struct bio *bp)
off += t;
}
bp->bio_resid = 0;
- biofinish(bp, &sc->stats, 0);
+ biodone(bp);
s = splbio();
}
@@ -199,10 +195,6 @@ ssccreate(int unit)
LIST_INSERT_HEAD(&ssc_softc_list, sc, list);
sc->unit = unit;
bioq_init(&sc->bio_queue);
- devstat_add_entry(&sc->stats, "sscdisk", sc->unit, DEV_BSIZE,
- DEVSTAT_NO_ORDERED_TAGS,
- DEVSTAT_TYPE_DIRECT | DEVSTAT_TYPE_IF_OTHER,
- DEVSTAT_PRIORITY_OTHER);
sc->disk.d_strategy = sscstrategy;
sc->disk.d_name = "sscdisk";
OpenPOWER on IntegriCloud