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

infernalis: librbd: flattening an rbd image with active IO can lead to hang #7484

Merged
4 commits merged into from Feb 11, 2016

Conversation

dillaman
Copy link

@dillaman dillaman commented Feb 2, 2016

@dillaman
Copy link
Author

dillaman commented Feb 2, 2016

@jdurgin requesting review

@dillaman dillaman force-pushed the wip-14610-infernalis branch 2 times, most recently from 9661a17 to 3b4a5f9 Compare February 3, 2016 02:59
@jdurgin
Copy link
Member

jdurgin commented Feb 4, 2016

lgtm after a qa run

ghost pushed a commit that referenced this pull request Feb 8, 2016
… IO can lead to hang

Reviewed-by: Loic Dachary <ldachary@redhat.com>
@ghost ghost changed the title librbd: flattening an rbd image with active IO can lead to hang DNM: librbd: flattening an rbd image with active IO can lead to hang Feb 8, 2016
@ghost ghost assigned dillaman and unassigned Abhishekvrshny Feb 8, 2016
@ghost
Copy link

ghost commented Feb 8, 2016

@dillaman could you please amend the commit of "test: new librbd flatten test case" to shortly explain why it cannot be cherry-picked and has to be applied in this way to the infernalis branch ?

For the record:

It passed a run of the infernalis rbd suite ( see http://tracker.ceph.com/issues/13750#note-18 for details ). Note that all valgrind tests in this suite fail because of an environmental problem ( http://tracker.ceph.com/issues/14664 ).

Jason Dillaman added 4 commits February 11, 2016 10:01
AIO operations after a flatten operation were previously
hanging during the close of the parent image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 5b3a4d2)
If another (independent) queue was processing, drain could
block waiting.  Instead, allow drain to exit quickly if
no items are being processed and the queue is empty for
the current WQ.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit b118d7d)
Add a new convenience method to ImageCtx for handling flush
requests and cleanup flush handling with dealing with the cache.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(based on commit ee7c6f7)
Fixes: ceph#14092
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 98157ab)
@dillaman dillaman changed the title DNM: librbd: flattening an rbd image with active IO can lead to hang librbd: flattening an rbd image with active IO can lead to hang Feb 11, 2016
ghost pushed a commit that referenced this pull request Feb 11, 2016
librbd: flattening an rbd image with active IO can lead to hang

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
@ghost ghost merged commit 71f380a into ceph:infernalis Feb 11, 2016
@dillaman dillaman deleted the wip-14610-infernalis branch February 11, 2016 15:33
@Abhishekvrshny Abhishekvrshny changed the title librbd: flattening an rbd image with active IO can lead to hang infernalis: librbd: flattening an rbd image with active IO can lead to hang Feb 18, 2016
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants