aboutsummaryrefslogtreecommitdiff
path: root/sys/geom
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-10-24 18:47:31 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-10-24 18:47:31 +0000
commit7b3c545769a21a3ec373b4b436bbcf33cdc1ebf3 (patch)
treed8c6812672d6e29b904355f5014e11f599b02826 /sys/geom
parent87ac8d11c23a1897aaa220d537cbc916a84238b4 (diff)
downloadsrc-7b3c545769a21a3ec373b4b436bbcf33cdc1ebf3.tar.gz
src-7b3c545769a21a3ec373b4b436bbcf33cdc1ebf3.zip
Close the right consumers if we run into trouble opening them all.
Submitted by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
Notes
Notes: svn path=/head/; revision=121476
Diffstat (limited to 'sys/geom')
-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 d7e9e6d9e625..ccb03685aa6c 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;
}