From owner-cvs-src@FreeBSD.ORG Tue Jul 20 22:30:20 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 6762516A4CF; Tue, 20 Jul 2004 22:30:20 +0000 (GMT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0196443D5A; Tue, 20 Jul 2004 22:30:20 +0000 (GMT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id C7AC45C918; Tue, 20 Jul 2004 15:30:19 -0700 (PDT) Date: Tue, 20 Jul 2004 15:30:19 -0700 From: Alfred Perlstein To: Robert Watson Message-ID: <20040720223019.GM95729@elvis.mu.org> References: <200407202052.i6KKqUI8010163@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200407202052.i6KKqUI8010163@repoman.freebsd.org> User-Agent: Mutt/1.4.2.1i cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/netinet raw_ip.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: Tue, 20 Jul 2004 22:30:20 -0000 * Robert Watson [040720 13:52] wrote: > rwatson 2004-07-20 20:52:30 UTC > > FreeBSD src repository > > Modified files: > sys/netinet raw_ip.c > Log: > M_PREPEND() the IP header on to the front of an outgoing raw IP packet > using M_DONTWAIT rather than M_WAITOK to avoid sleeping on memory > while holding a mutex. Isn't there a call we can add to mget/malloc/zalloc to do this: if (flags & _WAIT) ask_witness_if_we_can_sleep deferring to the actual tsleep call will never catch as many. If you don't have the time, I may be able to get to this tonight. -- - Alfred Perlstein - Research Engineering Development Inc. - email: bright@mu.org cell: 408-480-4684