Close the right consumers if we run into trouble opening them all.

Submitted by:	Pawel Jakub Dawidek <nick@garage.freebsd.pl>
This commit is contained in:
Poul-Henning Kamp 2003-10-24 18:47:31 +00:00
parent 87ac8d11c2
commit 7b3c545769

View File

@ -173,7 +173,7 @@ g_ccd_access(struct g_provider *pp, int dr, int dw, int de)
LIST_FOREACH(cp2, &gp->consumer, consumer) {
if (cp1 == cp2)
break;
g_access_rel(cp1, -dr, -dw, -de);
g_access_rel(cp2, -dr, -dw, -de);
}
break;
}