git: netisr barrier: Avoid lockless wakeup/tsleep race

看板DFBSD_commit作者時間15年前 (2011/01/31 11:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit ca3321f80921e6398c9aa5a4c00811086e981d76 Author: Sepherosa Ziehau <sephe@dragonflybsd.org> Date: Mon Jan 31 11:09:35 2011 +0800 netisr barrier: Avoid lockless wakeup/tsleep race Add a waiting state (NETISR_BR_WAITDONE), before it is set wakeup() will not be called. And use atomic_cmpset_int() to do the state transition. With-help-from: dillon@ Summary of changes: sys/net/netisr.c | 28 ++++++++++++++++++++-------- 1 files changed, 20 insertions(+), 8 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ca3321f80921e6398c9aa5a4c00811086e981d76 -- DragonFly BSD source repository
文章代碼(AID): #1DHYquwe (DFBSD_commit)