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
This commit is contained in:
pjd 2012-12-26 20:07:47 +00:00
parent 5f0225e4d6
commit a86b6e7ae5

View File

@ -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;