git: kernel - MPSAFE work - fast-path UP tokens when the mplock

看板DFBSD_commit作者時間15年前 (2010/06/10 10:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit c843cbf7c4875cfd75067aae571473448a124388 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Tue Jun 8 21:48:22 2010 -0700 kernel - MPSAFE work - fast-path UP tokens when the mplock is already held * Optimize the case where a UP token is acquired and the MP lock is already held, greatly reducing the acquisition & release overhead. When the MP lock is already held we do not have to acquire it again recursively, which saves us lots of unnecessary calls to get_mplock() and rel_mplock(). Summary of changes: sys/kern/lwkt_token.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c843cbf7c4875cfd75067aae571473448a124388 -- DragonFly BSD source repository
文章代碼(AID): #1C44we4E (DFBSD_commit)