Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Mar 2013 07:26:33 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r248568 - head/sys/geom
Message-ID:  <201303210726.r2L7QXID075602@svn.freebsd.org>

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



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