From 6011443800897f4c694d0fb2def5b4ba41adcc4b Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Wed, 26 Dec 2012 20:07:47 +0000 Subject: [PATCH] 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 --- sys/geom/geom_io.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c index 0294887b402e..c6a5da8f8a60 100644 --- a/sys/geom/geom_io.c +++ b/sys/geom/geom_io.c @@ -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;