svn commit: r248568 - head/sys/geom

Konstantin Belousov kib at FreeBSD.org
Thu Mar 21 07:26:34 UTC 2013


Author: kib
Date: Thu Mar 21 07:26:33 2013
New Revision: 248568
URL: http://svnweb.freebsd.org/changeset/base/248568

Log:
  Assert that transient mapping of the bio is only done when unmapped
  buffers are allowed.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/geom/geom_io.c

Modified: head/sys/geom/geom_io.c
==============================================================================
--- head/sys/geom/geom_io.c	Thu Mar 21 07:25:08 2013	(r248567)
+++ head/sys/geom/geom_io.c	Thu Mar 21 07:26:33 2013	(r248568)
@@ -628,6 +628,8 @@ g_io_transient_map_bio(struct bio *bp)
 	u_int retried;
 	int rv;
 
+	KASSERT(unmapped_buf_allowed, ("unmapped disabled"));
+
 	size = round_page(bp->bio_ma_offset + bp->bio_length);
 	KASSERT(size / PAGE_SIZE == bp->bio_ma_n, ("Bio too short %p", bp));
 	addr = 0;


More information about the svn-src-all mailing list