]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix onode cache addition race 11300/head
authorSage Weil <sage@redhat.com>
Mon, 3 Oct 2016 21:36:50 +0000 (17:36 -0400)
committerSage Weil <sage@redhat.com>
Mon, 3 Oct 2016 21:37:15 +0000 (17:37 -0400)
commit2150e9914bd28376c8dc3a114ce3daeff81d89f4
tree2c0cb9d3b6da034122126d3f8bff2487d424a04b
parent00873f26e54252db61f3301f26a5877bea26e15d
os/bluestore: fix onode cache addition race

Two threads may try to add the same onode to the cache.
This is rare, but allowed (in the case of the meta
collection).  If that happens, one of them will just
back off and use the winning onode ref.

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