From owner-cvs-src@FreeBSD.ORG Fri Apr 25 14:20:58 2003 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 AABFE37B401; Fri, 25 Apr 2003 14:20:58 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47C7843FA3; Fri, 25 Apr 2003 14:20:58 -0700 (PDT) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h3PLKw0U035840; Fri, 25 Apr 2003 14:20:58 -0700 (PDT) (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3PLKvNb035837; Fri, 25 Apr 2003 14:20:57 -0700 (PDT) Message-Id: <200304252120.h3PLKvNb035837@repoman.freebsd.org> From: Poul-Henning Kamp Date: Fri, 25 Apr 2003 14:20:57 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/geom/bde g_bde_work.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: Fri, 25 Apr 2003 21:20:59 -0000 phk 2003/04/25 14:20:57 PDT FreeBSD src repository Modified files: sys/geom/bde g_bde_work.c Log: Fix a problem and slightly improve the ENOMEM handling: Give up the entire bio as soon as we detect a problem. When we detect a problem, give up the bio by contributing the remainder with ENOMEM, rather than kicking the bio back right away. If we failed on a non-first iteration we previously could end up modifying fields in the bio after we delivered it. This could account for memory corruption (none directly reported) on machines with GBDE. Revision Changes Path 1.11 +12 -11 src/sys/geom/bde/g_bde_work.c