]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/net/io_handler: ctor add gate ctor with shard id
authorNitzan Mordechai <nmordech@redhat.com>
Wed, 28 Aug 2024 09:08:26 +0000 (09:08 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Thu, 5 Sep 2024 10:32:08 +0000 (10:32 +0000)
commit1071cc38868ceb8c06ebdefa3826411e7658f2d8
tree9afd8404b44789995b49b9b90cf5b658129c16e3
parentd944d3207921b1fdb3b160540de3347bbdfac66c
crimson/net/io_handler: ctor add gate ctor with shard id

IOHandler::to_new_sid provides a mechanism to switch to a new core from the current one used.
This behavior is tricky for making sure that we keep the IOHandler::shard_states_t::gate instance to be used on the same core that it was created.
In order to resolve this, we should be able to construct Gated out of specified core_id (and not from this_shard_id).

See: https://github.com/ceph/ceph/pull/58986#discussion_r1733782952

Signed-off-by: NitzanMordhai <nmordech@redhat.com>
src/crimson/common/gated.h
src/crimson/net/io_handler.h