diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-10-09 07:11:59 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-10-09 07:11:59 +0000 |
commit | 3f521b6022ea6f9efdb4b388551e4216436cc30a (patch) | |
tree | a44664bc7d5852c7393f6ea401ff5c37d19c26dc /sys/geom/geom_io.c | |
parent | 61e1c1f39ee6e1e15e19789d7b8d6bee1b89ec58 (diff) | |
download | src-3f521b6022ea6f9efdb4b388551e4216436cc30a.tar.gz src-3f521b6022ea6f9efdb4b388551e4216436cc30a.zip |
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.
Notes
Notes:
svn path=/head/; revision=104701
Diffstat (limited to 'sys/geom/geom_io.c')
-rw-r--r-- | sys/geom/geom_io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c index f1d21da524be..deb8978bf769 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); |