On 11 Apr 2010, at 23:44, Sam Leffler wrote: > Rui Paulo wrote: >> Author: rpaulo >> Date: Fri Apr 9 12:06:19 2010 >> New Revision: 206419 >> URL: http://svn.freebsd.org/changeset/base/206419 >> Log: >> Use M_NOWAIT instead of M_WAITOK to avoid race conditions. >> > > Can you describe these race conditions (or at least one of them)?
Some drivers call ratectl functions with locks held. I saw similar allocations in the net80211 stack that used M_NOWAIT and printed an error if the allocation failed, but didn't notify the caller (for example ieee80211_node_table_init()). If I use M_WAITOK here I'll also get WITNESS warnings. Regards, -- Rui Paulo _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"