Date: Wed, 11 Aug 2004 12:04:35 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/geom geom_io.c Message-ID: <200408111204.i7BC4Z6M065496@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
pjd 2004-08-11 12:04:35 UTC
FreeBSD src repository
Modified files:
sys/geom geom_io.c
Log:
When sending request once again because of ENOMEM, reset bio_children
and bio_inbed fields to 0. Without this change we can end up with
I/O leakage in some rare situations.
I tested this change by putting failure probability mechanism simlar
to this used in NOP class into g_clone_bio(9) function, so it was
able to return NULL with the given probability.
Discussed with: phk
Revision Changes Path
1.57 +2 -0 src/sys/geom/geom_io.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408111204.i7BC4Z6M065496>
