]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: use normal Context for async deferred_try_submit 18127/head
authorSage Weil <sage@redhat.com>
Tue, 3 Oct 2017 21:48:37 +0000 (16:48 -0500)
committerSage Weil <sage@redhat.com>
Thu, 5 Oct 2017 11:58:33 +0000 (06:58 -0500)
commit7986d4566a1f6d8e22a9acd19608530ce64cbfa1
treeb82a8c8146c1ae6e01102c12795f8a261d1956d8
parent9ab0f64bcf74f74838f6066d554f728902c31715
os/bluestore: use normal Context for async deferred_try_submit

I'm not quite sure why the FunctionContext did not ever execute on the
finisher thread (perhaps the [&] captured some state on the stack that it
shouldn't have?).  In any case, using a traditional Context here appears
to resolve the problem (of the async deferred_try_submit() never executing,
leading to a bluestore stall/deadlock).

Fixes: http://tracker.ceph.com/issues/21470
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 67ec75805787ed63b35f8d70478a7a2cd785df06)
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h