]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/buffer: replace RWLock with spinlocks 7294/head
authorPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Mon, 18 Jan 2016 12:27:35 +0000 (13:27 +0100)
committerPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Mon, 18 Jan 2016 12:46:59 +0000 (13:46 +0100)
commit507774a9020f0a1e9ecc47569e5f84cae46bf600
tree26e065ebb45126f09b5a85690cc788606059a54a
parent3daf908ba0e5288031e672dd78966aecffc873cf
common/buffer: replace RWLock with spinlocks

This decreases buffer::raw size by about 100 bytes (since RWLock occupies
104 bytes and simple_spinlock_t just 4) and also significantly decreases
time wasted by locking and unlocking, possibly reducing context switches too.
Particularly visible when using small blocksizes.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
src/common/buffer.cc