git: async_rcvd: Move MSGF_DONE test under async rcvd spinlock

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Tue Mar 19 00:53:48 PDT 2013


commit f65f767c30993b1fc4cb440689529d824ba5a60b
Author: Sepherosa Ziehau <sephe at 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



More information about the Commits mailing list