From owner-freebsd-current Mon Jan 18 12:40:28 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA06703 for freebsd-current-outgoing; Mon, 18 Jan 1999 12:40:28 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA06698 for ; Mon, 18 Jan 1999 12:40:27 -0800 (PST) (envelope-from green@unixhelp.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.8.8/8.8.7) with ESMTP id PAA19890; Mon, 18 Jan 1999 15:40:18 -0500 (EST) Date: Mon, 18 Jan 1999 15:40:18 -0500 (EST) From: Brian Feldman X-Sender: green@janus.syracuse.net To: Mike Smith cc: Julian Elischer , current@FreeBSD.ORG Subject: Re: kernel malloc and M_CANWAIT In-Reply-To: <199901182029.MAA18468@dingo.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 18 Jan 1999, Mike Smith wrote: > > On Mon, 18 Jan 1999, Mike Smith wrote: > > > > > > > > > > Here at whistle we are trying to remember about a conversation > > > > regarding malloc that occured recently. Maybe others can help. > > > > > > > > There was some talk about the fact that malloc(..M_CANWAIT) > > > > can now return with a failure. Is that true? > > > > > > Yes; it's necessary to do this to allow some chance of avoiding > > > deadlock. > > > > Ouch! Is everything in src-sys already checking the return value of an M_WAITOK? > > Probably not, no. I had some patches from Andrzej who was trying to do > it just for the mbuf allocator case; there's definitely a call for > someone to take the time to clean things up. Well, it'll be hard to determine (for me, not knowing any of the kernel well) whether it's proper for: a. return EAGAIN b. return ENOMEN c. try again, then return EAGAIN/ENOMEM? But I'm going to start fixing what I can. It would have been nice for a HEADS UP! or somesuch. > > -- > \\ Sometimes you're ahead, \\ Mike Smith > \\ sometimes you're behind. \\ mike@smith.net.au > \\ The race is long, and in the \\ msmith@freebsd.org > \\ end it's only with yourself. \\ msmith@cdrom.com > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > Brian Feldman _ __ ___ ___ ___ green@unixhelp.org _ __ ___ | _ ) __| \ http://www.freebsd.org/ _ __ ___ ____ | _ \__ \ |) | FreeBSD: The Power to Serve! _ __ ___ ____ _____ |___/___/___/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message