aboutsummaryrefslogtreecommitdiff
path: root/sys/geom
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2012-12-26 20:07:47 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2012-12-26 20:07:47 +0000
commit6011443800897f4c694d0fb2def5b4ba41adcc4b (patch)
tree886822303edc3758c09f06a22459b48bba6748ad /sys/geom
parentb42a2049f1e514845f06dbde089d2f02ee759649 (diff)
downloadsrc-6011443800897f4c694d0fb2def5b4ba41adcc4b.tar.gz
src-6011443800897f4c694d0fb2def5b4ba41adcc4b.zip
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
Notes
Notes: svn path=/head/; revision=244716
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/geom_io.c3
1 files changed, 3 insertions, 0 deletions
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;