]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: cache: keep writing buffers out of LRU
authorSage Weil <sage@redhat.com>
Fri, 10 Jun 2016 13:10:30 +0000 (09:10 -0400)
committerSage Weil <sage@redhat.com>
Wed, 22 Jun 2016 15:28:40 +0000 (11:28 -0400)
commit7d9629c07e5c7f07ae78072d17608c62979f5f67
tree81fd13f155d536561f6d6b711866dae15133967d
parentb55255d23e61d3a4e9f498bec0bbe8554cd249d9
os/bluestore: cache: keep writing buffers out of LRU

Don't bother putting a writing buffer in the LRU until it is clean (and
trimmable).  Otherwise, we end up with writing items near the end of the
LRU that we have to iterate over on every trim() invocation.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h