so_pru_send_async: Use M_NOWAIT to allocate address
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 18 Jul 2013 00:52:22 +0000 (08:52 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 18 Jul 2013 00:55:20 +0000 (08:55 +0800)
commita007c531934867f913b30b2bf43d5535ff402b69
tree558b2f5aef69632aed7cc20d6d96dbf8f663da53
parent1b1eb0600277ba0b470a88b33ec92fd3f087b958
so_pru_send_async: Use M_NOWAIT to allocate address

If the allocation failed, we just fall back to the synchronized pru_send.
Using M_WAITOK defeats the purpose of asynchronized pru_send, which tries
to prevent the current thread from being scheduled.
sys/kern/uipc_msg.c