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

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 9 Jun 2010 19:17:53 -0700 (PDT)

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



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