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/KernelDevice: fix race in aio_thread vs aio_wait #12204

Merged
merged 1 commit into from Nov 29, 2016

Commits on Nov 28, 2016

  1. os/bluestore/KernelDevice: fix race in aio_thread vs aio_wait

    The caller is free to destroy the aio vector contents
    once aio_wait completes.  This is exactly what
    BlueFS::_fsync() does.  Delay the num_running dec
    (which is what aio_wait waits for) until after we've
    examined the aios.
    
    Fixes: http://tracker.ceph.com/issues/17824
    Signed-off-by: Sage Weil <sage@redhat.com>
    liewegas committed Nov 28, 2016
    Copy the full SHA
    6ffaa54 View commit details
    Browse the repository at this point in the history