DragonFly BSD
DragonFly commits List (threaded) for 2013-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: so_pru_send_async: Use M_NOWAIT to allocate address


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 17 Jul 2013 18:01:32 -0700 (PDT)

commit a007c531934867f913b30b2bf43d5535ff402b69
Author: Sepherosa Ziehau <sephe@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]