From owner-freebsd-hackers Sat Jun 15 12:46:58 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id D6E6C37B404; Sat, 15 Jun 2002 12:46:53 -0700 (PDT) Received: from pool0289.cvx22-bradley.dialup.earthlink.net ([209.179.199.34] helo=mindspring.com) by falcon.mail.pas.earthlink.net with esmtp (Exim 3.33 #2) id 17JJVd-0007ct-00; Sat, 15 Jun 2002 12:46:53 -0700 Message-ID: <3D0B9988.4A34CE@mindspring.com> Date: Sat, 15 Jun 2002 12:46:16 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Maxime Henrion Cc: hackers@FreeBSD.org, Evan Sarmiento Subject: Re: CHN_LOCK() References: <200206151734.g5FHYBs26505@csa.bu.edu> <20020615180627.GO85244@elvis.mu.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Maxime Henrion wrote: > Calling malloc() with M_NOWAIT isn't a good fix as well, because there > is no reason to make this code fail if memory if not available at the > moment, and not have it sleep for it instead. M_NOWAIT should only be > used while in interrupt context, as far as I know. The mbuf allocation code implies this in all cases, not just the interrupt case. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message