git: kernel - MPSAFE work - fast-path UP tokens when the mplock is already held
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Jun 9 19:18:57 PDT 2010
commit c843cbf7c4875cfd75067aae571473448a124388
Author: Matthew Dillon <dillon at 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
More information about the Commits
mailing list