Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jun 2002 12:46:16 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Maxime Henrion <mux@freebsd.org>
Cc:        hackers@FreeBSD.org, Evan Sarmiento <evms@cs.bu.edu>
Subject:   Re: CHN_LOCK()
Message-ID:  <3D0B9988.4A34CE@mindspring.com>
References:  <200206151734.g5FHYBs26505@csa.bu.edu> <20020615180627.GO85244@elvis.mu.org>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D0B9988.4A34CE>