]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
async/rdma: initialize worker in RDMAStack::create_worker()
authorKefu Chai <kchai@redhat.com>
Wed, 24 Feb 2021 04:06:45 +0000 (12:06 +0800)
committeryite.gu <yitegu0@gmail.com>
Sun, 4 Feb 2024 03:21:17 +0000 (11:21 +0800)
commit9df11e889b037aa967f08d28dd8b272b8ad3a29d
tree66ccd181de46b2620c3365860a3a4cfe265b9642
parent50e3d50d677101691f2cb1d8f95f3ad98e2e9c99
async/rdma: initialize worker in RDMAStack::create_worker()

in ff65c800b3e1f3f7e3989223b9bde4cbbaf5c076, we moved create_worker()
call out of the constructor to avoid calling virtual functions in
constructor. but this created a regression where RDMAStack's constructor
tries to reference its workers not yet created.

in this change, the workers are initialized right after they are
created.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 103ec86cfab3e6807602b128346212bc8eb0d88d)
src/msg/async/rdma/RDMAStack.cc