summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-03-09 10:01:16 +0000
committerphk <phk@FreeBSD.org>2003-03-09 10:01:16 +0000
commit418634ed06b2de65511355dbaca57a245ecb6c94 (patch)
treeca31f5e1d74d637647f1515cdb146ced002019cc
parentd2601e24806f334788c76033d47ff88a171c98d5 (diff)
downloadFreeBSD-src-418634ed06b2de65511355dbaca57a245ecb6c94.zip
FreeBSD-src-418634ed06b2de65511355dbaca57a245ecb6c94.tar.gz
Don't use statistics counters to detect outstanding I/O.
-rw-r--r--sys/geom/geom_subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c
index 1b9c01e..1dda9d3 100644
--- a/sys/geom/geom_subr.c
+++ b/sys/geom/geom_subr.c
@@ -332,7 +332,7 @@ g_detach(struct g_consumer *cp)
KASSERT(cp->acr == 0, ("detach but nonzero acr"));
KASSERT(cp->acw == 0, ("detach but nonzero acw"));
KASSERT(cp->ace == 0, ("detach but nonzero ace"));
- KASSERT(cp->stat->nop == cp->stat->nend,
+ KASSERT(cp->nstart == cp->nend,
("detach with active requests"));
pp = cp->provider;
LIST_REMOVE(cp, consumers);
OpenPOWER on IntegriCloud