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

librbd: Asynchronous (v2) image creation #9585

Merged
merged 15 commits into from Aug 10, 2016
Merged

Commits on Aug 7, 2016

  1. librbd / ImageCtx: singleton thread pool instance helper

    Introduce static member function in ImageCtx to fetch (and
    initialize) singleton thread pool.
    
    Signed-off-by: Venky Shankar <vshankar@redhat.com>
    vshankar committed Aug 7, 2016
    Copy the full SHA
    21e6573 View commit details
    Browse the repository at this point in the history
  2. librbd / ImageCtx: singleton safetimer instance helper

    Signed-off-by: Venky Shankar <vshankar@redhat.com>
    vshankar committed Aug 7, 2016
    Copy the full SHA
    1416f1c View commit details
    Browse the repository at this point in the history
  3. journaler: asynchronous JournalTrimmer::remove_objects()

    Asynchronous removal of journal objects for a given rbd image.
    
    Signed-off-by: Venky Shankar <vshankar@redhat.com>
    vshankar committed Aug 7, 2016
    Copy the full SHA
    c0848e2 View commit details
    Browse the repository at this point in the history
  4. journaler: implement asynchronous exists()

    Signed-off-by: Venky Shankar <vshankar@redhat.com>
    vshankar committed Aug 7, 2016
    Copy the full SHA
    0dfbadd View commit details
    Browse the repository at this point in the history
  5. journaler: implement asynchronous remove()

    Signed-off-by: Venky Shankar <vshankar@redhat.com>
    vshankar committed Aug 7, 2016
    Copy the full SHA
    226a5d2 View commit details
    Browse the repository at this point in the history
  6. librbd / journal: async journal removal state machine

    Signed-off-by: Venky Shankar <vshankar@redhat.com>
    vshankar committed Aug 7, 2016
    Copy the full SHA
    c4e439d View commit details
    Browse the repository at this point in the history
  7. journaler: async journal object creation

    Introduce asynchronous journal object creation. This is
    a prerequisite for asynchronous creation of rbd image
    journals.
    
    Signed-off-by: Venky Shankar <vshankar@redhat.com>
    vshankar committed Aug 7, 2016
    Copy the full SHA
    c412941 View commit details
    Browse the repository at this point in the history
  8. librbd / journal: async journal creation state machine

    Signed-off-by: Venky Shankar <vshankar@redhat.com>
    vshankar committed Aug 7, 2016
    Copy the full SHA
    d5fa466 View commit details
    Browse the repository at this point in the history
  9. librbd: asynchronous image creation state machine

    Signed-off-by: Venky Shankar <vshankar@redhat.com>
    vshankar committed Aug 7, 2016
    Copy the full SHA
    65d44d5 View commit details
    Browse the repository at this point in the history
  10. librbd: helper to generate unique image id

    Signed-off-by: Venky Shankar <vshankar@redhat.com>
    vshankar committed Aug 7, 2016
    Copy the full SHA
    1c82132 View commit details
    Browse the repository at this point in the history
  11. cls / librbd: use asynchronous image creation state machine

    ... plus changes in rbd class library to use helpers methods.
    
    Signed-off-by: Venky Shankar <vshankar@redhat.com>
    vshankar committed Aug 7, 2016
    Copy the full SHA
    d2baf76 View commit details
    Browse the repository at this point in the history
  12. librbd: minor refactor in create_v1()

    create_v2() uses util::generate_image_id() therefore not
    requiring 'bid' to be passed in as parameter. This makes
    bid generation in create() unnecessary -- hence move this
    call to create_v1().
    
    Signed-off-by: Venky Shankar <vshankar@redhat.com>
    vshankar committed Aug 7, 2016
    Copy the full SHA
    830e0f1 View commit details
    Browse the repository at this point in the history
  13. rbd-mirror: asynchronously create mirror images

    Use the newly instroduced asynchronous image creation state
    machine (CreateRequest) to create mirrored images.
    
    Signed-off-by: Venky Shankar <vshankar@redhat.com>
    vshankar committed Aug 7, 2016
    Copy the full SHA
    76e2d86 View commit details
    Browse the repository at this point in the history
  14. test: fix CreateImageRequest unit test case

    Signed-off-by: Venky Shankar <vshankar@redhat.com>
    vshankar committed Aug 7, 2016
    Copy the full SHA
    1713148 View commit details
    Browse the repository at this point in the history
  15. journaler: remove ununsed synchronous API routines

    Synchronous callers now call the asynchronous version wrapped
    around C_SaferCond. Also take care of mocked methods.
    
    Fixes: http://tracker.ceph.com/issues/15321
    Signed-off-by: Venky Shankar <vshankar@redhat.com>
    vshankar committed Aug 7, 2016
    Copy the full SHA
    3492153 View commit details
    Browse the repository at this point in the history