]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: trim header update not using AIO 3493/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 26 Jan 2015 03:15:07 +0000 (22:15 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 26 Jan 2015 03:15:07 +0000 (22:15 -0500)
commit5301b2b7057a49eb336dbe2ab3e49f4d5bbdc0a9
tree2b6bf9b59a54a9e85eef814810cd57b56548feaf
parent1798803292eae21d7c8b366db308471eabb5eba0
librbd: trim header update not using AIO

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>
src/librbd/internal.cc