Author: trasz
Date: Sat Apr  6 10:32:06 2013
New Revision: 249193
URL: http://svnweb.freebsd.org/changeset/base/249193

Log:
  Make it possible to submit FLUSH bios through geom_dev strategy.  This
  is required for CTL to work with device-backed LUNs.
  
  Reviewed by:  mav

Modified:
  head/sys/geom/geom_dev.c

Modified: head/sys/geom/geom_dev.c
==============================================================================
--- head/sys/geom/geom_dev.c    Sat Apr  6 09:57:27 2013        (r249192)
+++ head/sys/geom/geom_dev.c    Sat Apr  6 10:32:06 2013        (r249193)
@@ -501,7 +501,8 @@ g_dev_strategy(struct bio *bp)
 
        KASSERT(bp->bio_cmd == BIO_READ ||
                bp->bio_cmd == BIO_WRITE ||
-               bp->bio_cmd == BIO_DELETE,
+               bp->bio_cmd == BIO_DELETE ||
+               bp->bio_cmd == BIO_FLUSH,
                ("Wrong bio_cmd bio=%p cmd=%d", bp, bp->bio_cmd));
        dev = bp->bio_dev;
        cp = dev->si_drv2;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to