summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_io.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-09 07:11:59 +0000
committerphk <phk@FreeBSD.org>2002-10-09 07:11:59 +0000
commit08c1778957b9ef53b1f7108cd793b43eb7c756b0 (patch)
treea44664bc7d5852c7393f6ea401ff5c37d19c26dc /sys/geom/geom_io.c
parent32bc10e82a1e0e09a849279aa7935984a6de396e (diff)
downloadFreeBSD-src-08c1778957b9ef53b1f7108cd793b43eb7c756b0.zip
FreeBSD-src-08c1778957b9ef53b1f7108cd793b43eb7c756b0.tar.gz
Add support g_clone_bio() and g_std_done() to spawn multiple children
of a bio and correctly gather status when done. Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/geom/geom_io.c')
-rw-r--r--sys/geom/geom_io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c
index f1d21da..deb8978 100644
--- a/sys/geom/geom_io.c
+++ b/sys/geom/geom_io.c
@@ -151,6 +151,7 @@ g_clone_bio(struct bio *bp)
bp2->bio_offset = bp->bio_offset;
bp2->bio_data = bp->bio_data;
bp2->bio_attribute = bp->bio_attribute;
+ bp->bio_children++; /* XXX: atomic ? */
}
g_trace(G_T_BIO, "g_clone_bio(%p) = %p", bp, bp2);
return(bp2);
OpenPOWER on IntegriCloud