[prev in list] [next in list] [prev in thread] [next in thread]
List: dragonfly-commits
Subject: git: kernel - Refactor lwkt_token shared lock release
From: dillon () crater ! dragonflybsd ! org (Matthew Dillon)
Date: 2017-10-31 17:49:59
Message-ID: 20171031174959.58FC2B1DEAAF5E () crater ! dragonflybsd ! org
[Download RAW message or body]
commit 5abad2c526ea9231c114989501291f43a30b438b
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date: Mon Oct 23 19:08:13 2017 -0700
kernel - Refactor lwkt_token shared lock release
* We can finally get rid of the atomic_cmpset*() loop in the token
release code. The exclusive release can now simply clear the
TOK_EXCLUSIVE bit, and the shared release can now simply reduce
tok->t_count by TOK_INCR.
* This significantly improves heavily constested shared token
performance.
Summary of changes:
sys/kern/lwkt_token.c | 52 +++++++++++++++++++++------------------------------
1 file changed, 21 insertions(+), 31 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5abad2c526ea9231c114989501291f43a30b438b
--
DragonFly BSD source repository
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic