]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: wrapper class for ContextWQ
authorJason Dillaman <dillaman@redhat.com>
Thu, 11 Jun 2020 19:45:25 +0000 (15:45 -0400)
committerJason Dillaman <dillaman@redhat.com>
Sat, 13 Jun 2020 02:44:53 +0000 (22:44 -0400)
commitfdad0b77f40c69832d6cd59294fd228c301ac408
tree594ab9e8d81deabca17c4689f6d47cefd2a5994e
parentff2dac02e85da0500a485b2f509fa3b29c737651
librbd: wrapper class for ContextWQ

Numerous state machines in librbd utilize ContextWQ for handling deferred
completion work. Now that we have an ASIO thread pool, we want to remove
the older ThreadPool/WorkQueue implementation. To avoid massive refactoring,
this ContextWQ will mimic the interface of the old ContextWQ class but
utilize ASIO for dispatching.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/AsioEngine.cc
src/librbd/AsioEngine.h
src/librbd/CMakeLists.txt
src/librbd/asio/ContextWQ.cc [new file with mode: 0644]
src/librbd/asio/ContextWQ.h [new file with mode: 0644]