Subject: M_NOWAIT during attach
To: None <>
From: Joerg Sonnenberger <>
List: tech-kern
Date: 11/05/2007 21:22:57
Hi all,
why are many drivers currently using M_NOWAIT during attach?
I understand that sleeping on allocations would fail during boot, but
device attachment can happen later, especially if we ever want to get
LKMs working. If anything, this should be detected by malloc/free
internally. The default behaviour for drivers in such cases is panic as

Can we change this to just use M_WAITOK if the allocation doesn't happen
from interrupt context?