]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: fix race condition with AIO completion callbacks
authorJason Dillaman <dillaman@redhat.com>
Mon, 13 Jul 2020 17:45:44 +0000 (13:45 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 16 Jul 2020 20:02:55 +0000 (16:02 -0400)
commit50694f790245ca90a3b8a644da7b128a7a148cc6
tree30f1cb95815cf126e3016e4107093c91e0e5c083
parentcfbd18864602ecad1a34c904bfcb03b025fc3d37
librbd: fix race condition with AIO completion callbacks

Now that librbd utilizes multiple threads for the IO path, it's
possible for a race condition to occur if a client app is waiting
on a completion to fire and the actual invokation of the
completion.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/io/AioCompletion.cc
src/librbd/io/AioCompletion.h