]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: make Cache::lock a recursive_mutex
authorSage Weil <sage@redhat.com>
Wed, 14 Sep 2016 14:07:36 +0000 (10:07 -0400)
committerSage Weil <sage@redhat.com>
Wed, 14 Sep 2016 15:33:55 +0000 (11:33 -0400)
commitfa0f411029d3735baa3dbd1e1b8dc2173c1c1f80
tree0e598c1be847353383e90ef67cb4d2c36cd7e5a5
parent4174b42a43577148bbe744c57d2d3ebd15367a29
os/bluestore: make Cache::lock a recursive_mutex

We need to remove items from the cache LRUs in their
destructors, and it is very awkward to ensure that all
releasing paths either hold the cache lock or have
already cleared the cache items out.

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