]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
bufferlist: replace Mutex with RWlock 4982/head
authorPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Wed, 8 Jul 2015 16:52:22 +0000 (18:52 +0200)
committerPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Wed, 8 Jul 2015 16:52:22 +0000 (18:52 +0200)
commit7b31e11a109dd6bcf3de3b9e4785d9aecf9603b8
tree4f14dfb4136de2b63496299879d662ef83ce1c91
parent8feb27d821c76d00f76064fa04559e493be7ac32
bufferlist: replace Mutex with RWlock

Replace Mutex with RWlock in bufferlist code, so it doesn't block on reads,
also make it a tiny bit smarter, so it doesn't block writes on empty crc map
clears. Use no-tracking RWlock for better overall performance across entire
codebase, and don't use RWLocker helper classes for even larger performance
gains.

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