]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore/BlueFS: delay IOContext dtor until after io completes
authorSage Weil <sage@redhat.com>
Tue, 29 Dec 2015 18:43:03 +0000 (13:43 -0500)
committerSage Weil <sage@redhat.com>
Fri, 1 Jan 2016 18:08:56 +0000 (13:08 -0500)
commit03362796396a9124fa68cf12707288437836c592
tree684c48d8a26b3ac535c9abe8bd675e915f3b7bf5
parent7cb901c2e8654e229791ba734f21fbffce8f635e
os/bluestore/BlueFS: delay IOContext dtor until after io completes

It's possible for the IO to be in flight when the caller closes the
writer handle (although dangerous of them).  Queue the IOContext for
async cleanup when we sync everything to disk.

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