]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: pending AIO operations are now flushed asynchronously
authorJason Dillaman <dillaman@redhat.com>
Mon, 2 Feb 2015 15:50:09 +0000 (10:50 -0500)
committerJosh Durgin <jdurgin@redhat.com>
Tue, 3 Feb 2015 09:21:50 +0000 (10:21 +0100)
commitbb8c9ae29de3c38dd8073c8e61b19a4f8ed9e324
tree96ee95669fc730ad0a3de6635aab73b216f2f807
parentc65e1b072af3d66683159251c9c56f7d33087a13
librbd: pending AIO operations are now flushed asynchronously

If exclusive locking was enabled, the librbd aio_flush command
would block waiting for queued AIO operations to proceed once
the exclusive lock was obtained.  Now librbd will no longer
block when aio_flush is invoked and AIO operations are waiting
on the exclusive lock.

Fixes: #10714
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
src/librbd/ImageWatcher.cc
src/librbd/ImageWatcher.h
src/librbd/internal.cc