Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os/bluestore: fix another aio stall/deadlock #18118

merged 2 commits into from Oct 5, 2017


None yet
3 participants
Copy link

commented Oct 4, 2017

liewegas added some commits Sep 29, 2017

os/bluestore: wake kv thread when blocking on deferred_bytes
We need to wake the kv thread whenever setting deferred_aggressive to
ensure that txns with deferred io that have committed but haven't submitted
their deferred writes get submitted.  This aligns us with the other
users of deferred_aggressive (e.g., _osr_drain_all).

Signed-off-by: Sage Weil <>
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).

Signed-off-by: Sage Weil <>
Copy link

left a comment


@liewegas liewegas merged commit 7d1c99f into ceph:master Oct 5, 2017

5 checks passed

Docs: build check OK - docs built
Signed-off-by all commits in this PR are signed
Unmodified Submodules submodules for project are unmodified
make check make check succeeded
make check (arm64) make check succeeded

@liewegas liewegas deleted the liewegas:wip-21470 branch Oct 5, 2017


This comment has been minimized.

Copy link
Member Author

commented Oct 5, 2017

backport is #18127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.