kernel - MPSAFE work - fast-path UP tokens when the mplock is already held
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 9 Jun 2010 04:48:22 +0000 (21:48 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 9 Jun 2010 04:48:22 +0000 (21:48 -0700)
commitc843cbf7c4875cfd75067aae571473448a124388
treeb6c72a8172f630bd76c74fd9adcfd867ea8db717
parentc9aa7a821dc01d4a649d667165ccf73c946aace6
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().
sys/kern/lwkt_token.c