lkml.org 
[lkml]   [2016]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC][PATCH 0/7] locking/rwsem: Convert rwsem count to atomic_long_t
Date
The first patch contains an optimization for acquiring the rwsem write lock
in the slowpath.

This rest of the series converts the rwsem count variable to an atomic_long_t
since it is used it as an atomic variable. This allows us to also remove
the rwsem_atomic_{add,update} abstraction and reduce 100+ lines of code.

arch/alpha/include/asm/rwsem.h | 42 --------------------------------
arch/ia64/include/asm/rwsem.h | 7 ------
arch/s390/include/asm/rwsem.h | 37 -----------------------------
arch/x86/include/asm/rwsem.h | 18 --------------
include/asm-generic/rwsem.h | 16 -------------
include/linux/rwsem.h | 6 ++---
kernel/locking/rwsem-xadd.c | 54 ++++++++++++++++++++++++++----------------
7 files changed, 36 insertions(+), 144 deletions(-)

--
2.1.4

\
 
 \ /
  Last update: 2016-05-17 03:21    [W:0.226 / U:1.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site