summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_ccd.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-10-24 18:47:31 +0000
committerphk <phk@FreeBSD.org>2003-10-24 18:47:31 +0000
commita42d01d0367d5cf006aa27913df9cbb24cec6085 (patch)
treed8c6812672d6e29b904355f5014e11f599b02826 /sys/geom/geom_ccd.c
parent1fd6c526e3c8ecbaa29030ecd03a5762627f7c84 (diff)
downloadFreeBSD-src-a42d01d0367d5cf006aa27913df9cbb24cec6085.zip
FreeBSD-src-a42d01d0367d5cf006aa27913df9cbb24cec6085.tar.gz
Close the right consumers if we run into trouble opening them all.
Submitted by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
Diffstat (limited to 'sys/geom/geom_ccd.c')
-rw-r--r--sys/geom/geom_ccd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c
index d7e9e6d..ccb0368 100644
--- a/sys/geom/geom_ccd.c
+++ b/sys/geom/geom_ccd.c
@@ -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;
}
OpenPOWER on IntegriCloud