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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121476

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;
}