git: so_pru_send_async: Use M_NOWAIT to allocate address

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Wed Jul 17 18:01:32 PDT 2013


commit a007c531934867f913b30b2bf43d5535ff402b69
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Thu Jul 18 08:52:22 2013 +0800

    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.

Summary of changes:
 sys/kern/uipc_msg.c | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a007c531934867f913b30b2bf43d5535ff402b69


-- 
DragonFly BSD source repository


More information about the Commits mailing list