]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
FileJournal: reduce time wasted by bufferptr::zero 5114/head
authorPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Wed, 1 Jul 2015 12:18:30 +0000 (14:18 +0200)
committerPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Tue, 4 Aug 2015 07:26:43 +0000 (09:26 +0200)
commit35e45694463ea4451c2dfad870094508df332805
treeb5bd34c397a6c2a722a8451de6bcea04c359b7b2
parent10a336fe41d8835df6a27c97f4067a13c1311efe
FileJournal: reduce time wasted by bufferptr::zero

bufferptr::zero(), apart from actual memset() call, also invalidates its
internal CRC cache, which is empty at the time, so no point to lock its
mutex, clear CRC cache, unlock mutex and memset() entire bufferptr. Also,
not entire bufferptr needs to be zeroed, so clear out just unused parts
of it.

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