Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jul 2004 15:30:19 -0700
From:      Alfred Perlstein <alfred@freebsd.org>
To:        Robert Watson <rwatson@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/netinet raw_ip.c
Message-ID:  <20040720223019.GM95729@elvis.mu.org>
In-Reply-To: <200407202052.i6KKqUI8010163@repoman.freebsd.org>
References:  <200407202052.i6KKqUI8010163@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* Robert Watson <rwatson@FreeBSD.org> [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



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