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

git: async_rcvd: Move MSGF_DONE test under async rcvd spinlock


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 19 Mar 2013 00:53:48 -0700 (PDT)

commit f65f767c30993b1fc4cb440689529d824ba5a60b
Author: Sepherosa Ziehau <sephe@dragonflybsd.org>
Date:   Tue Mar 19 15:56:11 2013 +0800

    async_rcvd: Move MSGF_DONE test under async rcvd spinlock
    
    This flag is meant to be protected by the async rcvd spinlock; use
    ssleep instead of tsleep if race happened.
    
    Sysctl node kern.ipc.async_rcvd_drop_race is added to count the
    number of async rcvd message dropping races.

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

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


-- 
DragonFly BSD source repository



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