Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jan 1999 12:29:31 -0800
From:      Mike Smith <mike@smith.net.au>
To:        Brian Feldman <green@unixhelp.org>
Cc:        Mike Smith <mike@smith.net.au>, Julian Elischer <julian@whistle.com>, current@FreeBSD.ORG
Subject:   Re: kernel malloc and M_CANWAIT 
Message-ID:  <199901182029.MAA18468@dingo.cdrom.com>
In-Reply-To: Your message of "Mon, 18 Jan 1999 15:29:11 EST." <Pine.BSF.4.05.9901181527080.18713-100000@janus.syracuse.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.

-- 
\\  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901182029.MAA18468>