]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: invoke AioCompletion external callbacks via the op_work_queue 36331/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 28 Jul 2020 19:00:36 +0000 (15:00 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 29 Jul 2020 14:45:30 +0000 (10:45 -0400)
commit4db92f523c705b9d4e9ef26824982fdc1a309651
tree32500669547191f493e1d2aed745353afac658d5
parent21347122003f4463a91f5c29b7a0d2e3b9d91256
librbd: invoke AioCompletion external callbacks via the op_work_queue

The op_work_queue is single-threaded and will ensure clients won't
receive concurrent callbacks. It is also a simpler approach than
the original lock-free queue implementation that had issues with
potential race conditions.

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