Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Dec 2012 20:07:48 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r244716 - head/sys/geom
Message-ID:  <201212262007.qBQK7m03032280@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Wed Dec 26 20:07:47 2012
New Revision: 244716
URL: http://svnweb.freebsd.org/changeset/base/244716

Log:
  Reset provider-specific fields when resending I/O request in low memory
  conditions. This fixes assertion which checks those fields when kernel is
  compiled with DIAGNOSTIC.
  
  Reported by:	kib, pho
  MFC after:	1 week

Modified:
  head/sys/geom/geom_io.c

Modified: head/sys/geom/geom_io.c
==============================================================================
--- head/sys/geom/geom_io.c	Wed Dec 26 19:14:21 2012	(r244715)
+++ head/sys/geom/geom_io.c	Wed Dec 26 20:07:47 2012	(r244716)
@@ -567,6 +567,9 @@ g_io_deliver(struct bio *bp, int error)
 		printf("ENOMEM %p on %p(%s)\n", bp, pp, pp->name);
 	bp->bio_children = 0;
 	bp->bio_inbed = 0;
+	bp->bio_driver1 = NULL;
+	bp->bio_driver2 = NULL;
+	bp->bio_pflags = 0;
 	g_io_request(bp, cp);
 	pace++;
 	return;



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