]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
buffer.cc: add possibility to omit crc cache invalidation
authorPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Thu, 16 Jul 2015 09:04:34 +0000 (11:04 +0200)
committerPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Tue, 4 Aug 2015 07:59:11 +0000 (09:59 +0200)
commitd34e0415d76f646018e2a19f6c6227eb0c2ec5c3
treec5c1cb38a50ce52a93f3757fbba914b224c25cf2
parent472f73229e97efde43ea60da4ce47ed3ad8c209b
buffer.cc: add possibility to omit crc cache invalidation

In some cases, it might be worthwile to either not invalidate crc
cache at all, or postpone it until we're done with other tasks (for
example, after doing a lot of copy_in into single bufferptr instead
of invalid after each of copy_in). This reduces bufferptr lock usage
and in turn, decreases cpu utilization.
This change adds the optional crc_reset arg (which defaults to true)
so only new/aware code will use this feature.

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