Skip to content

librbd: trim header update not using AIO#3493

Merged
jdurgin merged 1 commit intomasterfrom
wip-10637
Jan 26, 2015
Merged

librbd: trim header update not using AIO#3493
jdurgin merged 1 commit intomasterfrom
wip-10637

Conversation

@dillaman
Copy link

The original trim header update code was using blocking IO to
update the header. After migrating to an asynchronous trim
which performs all work in librados callbacks, it exposed a
potential deadlock in the librados_test_stub when attempting
to do blocking IO within a librados callback. This commit
changes the header update to use AIO.

Fixes: #10637
Signed-off-by: Jason Dillaman dillaman@redhat.com

The original trim header update code was using blocking IO to
update the header.  After migrating to an asynchronous trim
which performs all work in librados callbacks, it exposed a
potential deadlock in the librados_test_stub when attempting
to do blocking IO within a librados callback.  This commit
changes the header update to use AIO.

Fixes: #10637
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
@loic-bot
Copy link

SUCCESS: the output of run-make-check.sh on centos-centos7 for 22bbf5f is http://paste2.org/_5ADwJIwW

:octocat: Sent from GH.

jdurgin added a commit that referenced this pull request Jan 26, 2015
librbd: trim header update not using AIO

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
@jdurgin jdurgin merged commit 9408d0f into master Jan 26, 2015
@jdurgin jdurgin deleted the wip-10637 branch January 26, 2015 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants