summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-01-28 20:55:55 +0000
committerphk <phk@FreeBSD.org>2001-01-28 20:55:55 +0000
commit079c35c874982f7198aa9b9fd3a25e92cb77ea1e (patch)
tree49144641df1b7e45dd8df99b2abcc5b3e49d9c63 /sys
parent89f4ee5ca6d98d6e7315034f013aacbcc0561725 (diff)
downloadFreeBSD-src-079c35c874982f7198aa9b9fd3a25e92cb77ea1e.zip
FreeBSD-src-079c35c874982f7198aa9b9fd3a25e92cb77ea1e.tar.gz
Remove devstat entries in mddelete()
Spotted: tegge
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/md/md.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index 064df7b..334023a 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -517,6 +517,7 @@ static void
mddelete(struct md_s *sc)
{
+ devstat_remove_entry(&sc->stats);
/* XXX: LOCK(unique unit numbers) */
LIST_REMOVE(sc, list);
/* XXX: UNLOCK(unique unit numbers) */
OpenPOWER on IntegriCloud