From owner-cvs-src@FreeBSD.ORG Wed Aug 11 12:04:36 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E63216A4CF; Wed, 11 Aug 2004 12:04:36 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B97F43D3F; Wed, 11 Aug 2004 12:04:36 +0000 (GMT) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i7BC4Z71065497; Wed, 11 Aug 2004 12:04:35 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from pjd@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i7BC4Z6M065496; Wed, 11 Aug 2004 12:04:35 GMT (envelope-from pjd) Message-Id: <200408111204.i7BC4Z6M065496@repoman.freebsd.org> From: Pawel Jakub Dawidek Date: Wed, 11 Aug 2004 12:04:35 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/geom geom_io.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 12:04:36 -0000 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