Subject: M_NOWAIT during attach
To: None <firstname.lastname@example.org>
From: Joerg Sonnenberger <email@example.com>
Date: 11/05/2007 21:22:57
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?