summaryrefslogtreecommitdiffstats
path: root/sys/dev/md
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/dev/md
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/dev/md')
-rw-r--r--sys/dev/md/md.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index 7b754cb..232eba8 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -64,7 +64,6 @@
#include <sys/systm.h>
#include <sys/bio.h>
#include <sys/conf.h>
-#include <sys/devicestat.h>
#include <sys/disk.h>
#include <sys/fcntl.h>
#include <sys/kernel.h>
@@ -143,7 +142,6 @@ struct indir {
struct md_s {
int unit;
LIST_ENTRY(md_s) list;
- struct devstat stats;
struct bio_queue_head bio_queue;
struct mtx queue_mtx;
struct disk disk;
@@ -594,15 +592,12 @@ md_kthread(void *arg)
switch (sc->type) {
case MD_MALLOC:
- devstat_start_transaction(&sc->stats);
error = mdstart_malloc(sc, bp);
break;
case MD_PRELOAD:
- devstat_start_transaction(&sc->stats);
error = mdstart_preload(sc, bp);
break;
case MD_VNODE:
- devstat_start_transaction(&sc->stats);
error = mdstart_vnode(sc, bp);
break;
case MD_SWAP:
@@ -672,11 +667,6 @@ static void
mdinit(struct md_s *sc)
{
- devstat_add_entry(&sc->stats, MD_NAME, sc->unit, sc->secsize,
- DEVSTAT_NO_ORDERED_TAGS,
- DEVSTAT_TYPE_DIRECT | DEVSTAT_TYPE_IF_OTHER,
- DEVSTAT_PRIORITY_OTHER);
- {
struct g_geom *gp;
struct g_provider *pp;
@@ -694,7 +684,6 @@ mdinit(struct md_s *sc)
g_error_provider(pp, 0);
g_topology_unlock();
PICKUP_GIANT();
- }
}
/*
@@ -909,15 +898,12 @@ mddestroy(struct md_s *sc, struct thread *td)
GIANT_REQUIRED;
mtx_destroy(&sc->queue_mtx);
- devstat_remove_entry(&sc->stats);
- {
if (sc->gp) {
sc->gp->flags |= G_GEOM_WITHER;
sc->gp->softc = NULL;
}
if (sc->pp)
g_orphan_provider(sc->pp, ENXIO);
- }
sc->flags |= MD_SHUTDOWN;
wakeup(sc);
while (sc->procp != NULL)
OpenPOWER on IntegriCloud