]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/common: bring green_get() to interruptor
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 6 Dec 2022 12:06:39 +0000 (12:06 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 28 Feb 2023 16:22:04 +0000 (16:22 +0000)
commit301b2c6b8afe1fe3771584aa15b3ebaabdff05aa
treed197df297fe42f48ea2f0065cd3793448b0646e4
parentdccca6beb9d96cec59bfb305a9e4c7b614a10ef8
crimson/common: bring green_get() to interruptor

The rationale
=============
Calling `get()` on an unavailable future can result in yielding
the reactor, so -- from the interruptor's POV -- the interrupt
condition must be handled exactly like it is done for `yield()`.

Interruptor takes care about that but, at the moment, only for the
interruptible futures; there is mechanism for plain `seastar::future`.
This patch paves the way for handling them as well.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/common/interruptible_future.h