Author: scottl
Date: Wed Jan 23 22:56:03 2013
New Revision: 245851
URL: http://svnweb.freebsd.org/changeset/base/245851
Log:
MFC r239132:
Clone BIO_ORDERED flag, for disk drivers (namely CAM) that try to
consume it.
Modified:
stable/9/sys/geom/geom_io.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/geom/geom_io.c
==============================================================================
--- stable/9/sys/geom/geom_io.c Wed Jan 23 22:52:20 2013 (r245850)
+++ stable/9/sys/geom/geom_io.c Wed Jan 23 22:56:03 2013 (r245851)
@@ -177,6 +177,12 @@ g_clone_bio(struct bio *bp)
if (bp2 != NULL) {
bp2->bio_parent = bp;
bp2->bio_cmd = bp->bio_cmd;
+ /*
+ * BIO_ORDERED flag may be used by disk drivers to enforce
+ * ordering restrictions, so this flag needs to be cloned.
+ * Other bio flags are not suitable for cloning.
+ */
+ bp2->bio_flags = bp->bio_flags & BIO_ORDERED;
bp2->bio_length = bp->bio_length;
bp2->bio_offset = bp->bio_offset;
bp2->bio_data = bp->bio_data;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"