From 21654c3b1746aa0629a380e41722b9c9db8d85ee Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 4 Mar 2003 10:15:19 +0000 Subject: [PATCH] Initialize the second buffer for mirroring to point to itself and not its partner. --- sys/dev/ccd/ccd.c | 1 + sys/geom/geom_ccd.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sys/dev/ccd/ccd.c b/sys/dev/ccd/ccd.c index ce4030b1e5ab..3abc28f6225f 100644 --- a/sys/dev/ccd/ccd.c +++ b/sys/dev/ccd/ccd.c @@ -783,6 +783,7 @@ ccdbuffer(struct ccdbuf **cb, struct ccd_s *cs, struct bio *bp, daddr_t bn, cadd return (ENOMEM); } bcopy(cb[0], cbp, sizeof(struct ccdbuf)); + cbp->cb_buf.bio_caller2 = cbp; cbp->cb_buf.bio_dev = ci2->ci_dev; cbp->cb_comp = ci2 - cs->sc_cinfo; cb[1] = cbp; diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c index ce4030b1e5ab..3abc28f6225f 100644 --- a/sys/geom/geom_ccd.c +++ b/sys/geom/geom_ccd.c @@ -783,6 +783,7 @@ ccdbuffer(struct ccdbuf **cb, struct ccd_s *cs, struct bio *bp, daddr_t bn, cadd return (ENOMEM); } bcopy(cb[0], cbp, sizeof(struct ccdbuf)); + cbp->cb_buf.bio_caller2 = cbp; cbp->cb_buf.bio_dev = ci2->ci_dev; cbp->cb_comp = ci2 - cs->sc_cinfo; cb[1] = cbp;