Don't use statistics counters to detect outstanding I/O.

This commit is contained in:
Poul-Henning Kamp 2003-03-09 10:01:16 +00:00
parent c6ae9b5fd2
commit 0e6be4723b

View File

@ -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);