Author: mav
Date: Tue Jun 18 09:42:43 2013
New Revision: 251927
URL: http://svnweb.freebsd.org/changeset/base/251927

Log:
  MFC r249193 (by trasz):
  Make it possible to submit FLUSH bios through geom_dev strategy.  This
  is required for CTL to work with device-backed LUNs.

Modified:
  stable/9/sys/geom/geom_dev.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/geom/geom_dev.c
==============================================================================
--- stable/9/sys/geom/geom_dev.c        Tue Jun 18 09:41:34 2013        
(r251926)
+++ stable/9/sys/geom/geom_dev.c        Tue Jun 18 09:42:43 2013        
(r251927)
@@ -522,7 +522,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