Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Apr 2013 10:32:07 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r249193 - head/sys/geom
Message-ID:  <201304061032.r36AW71f049069@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304061032.r36AW71f049069>