From owner-cvs-all@FreeBSD.ORG Tue Nov 11 01:09:27 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC80B16A4CE; Tue, 11 Nov 2003 01:09:27 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4ADE143FA3; Tue, 11 Nov 2003 01:09:27 -0800 (PST) (envelope-from jkoshy@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hAB99RXJ021151; Tue, 11 Nov 2003 01:09:27 -0800 (PST) (envelope-from jkoshy@repoman.freebsd.org) Received: (from jkoshy@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hAB99QOL021150; Tue, 11 Nov 2003 01:09:26 -0800 (PST) (envelope-from jkoshy) Message-Id: <200311110909.hAB99QOL021150@repoman.freebsd.org> From: Joseph Koshy Date: Tue, 11 Nov 2003 01:09:26 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_ktrace.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2003 09:09:28 -0000 jkoshy 2003/11/11 01:09:26 PST FreeBSD src repository Modified files: sys/kern kern_ktrace.c Log: Bound the number of iterations a thread can perform inside ktr_resize_pool(); this eliminates a potential livelock. Return ENOSPC only if we encountered an out-of-memory condition when trying to increase the pool size. Reviewed by: jhb, bde (style) Revision Changes Path 1.91 +8 -6 src/sys/kern/kern_ktrace.c