Author: mav
Date: Fri Apr  5 10:57:02 2013
New Revision: 249150
URL: http://svnweb.freebsd.org/changeset/base/249150

Log:
  MFC r244716 (by pjd):
  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.

Modified:
  stable/9/sys/geom/geom_io.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/geom/geom_io.c
==============================================================================
--- stable/9/sys/geom/geom_io.c Fri Apr  5 10:50:32 2013        (r249149)
+++ stable/9/sys/geom/geom_io.c Fri Apr  5 10:57:02 2013        (r249150)
@@ -565,6 +565,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;
_______________________________________________
svn-src-stable-9@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"

Reply via email to