HomeFreeBSD

Remove some strange code that allocates memory and then immediately

Description

Remove some strange code that allocates memory and then immediately
frees it again. The idea was to perform M_WAITOK allocations in a
process context to reduce the risk of later interrupt-context
M_NOWAIT allocations failing, but in fact this code can be called
from contexts where it is not desirable to sleep (e.g. if_start
routines), so it causes lots of witness "could sleep" warnings.

Details

Provenance
Ian Dowse <iedowse@FreeBSD.org>Authored on Jul 30 2002, 11:26 PM
Parents
rG04f3985d888e: Introduce support for Mandatory Access Control and extensible
Branches
Unknown
Tags
Unknown

Event Timeline