svn commit: r283538 - head/sys/net80211

John Baldwin jhb at freebsd.org
Tue May 26 17:15:26 UTC 2015


On Monday, May 25, 2015 10:38:33 PM Gleb Smirnoff wrote:
> On Mon, May 25, 2015 at 07:18:16PM +0000, Adrian Chadd wrote:
> A>   * kill M_WAITOK - some platforms just don't want you to use it
> 
> Actually all functions called in device attach context or in
> syscall context should use M_WAITOK. This makes API more robust and
> simplifies code a lot.
> 
> Can we achieve portability without losing this nice feature of
> FreeBSD?

I agree with this general policy.   There are several places that currently
use M_NOWAIT (e.g. new-bus) that could safely use M_WAITOK instead in many
cases (if not always).

-- 
John Baldwin


More information about the svn-src-head mailing list