]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix alloc release timing on sync submits
authorSage Weil <sage@redhat.com>
Tue, 15 Nov 2016 17:09:28 +0000 (12:09 -0500)
committerSage Weil <sage@redhat.com>
Fri, 18 Nov 2016 01:33:12 +0000 (19:33 -0600)
commit652d18f3596670bbf8968a63708ea2752d3dafc5
treebd09f248bc385cda590f8f3dd930cc57a52460e0
parentcc37efa47c1ba85244a22b324378b5cbdbf0f516
os/bluestore: fix alloc release timing on sync submits

If we submit the txc synchronously, we can't immediately release our
freed space to the allocator; that still needs to be done between
commit_start() and commit_finish() from the kv_sync_thread, protected
by the bdev barriers.

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