Skip to content

pack: pack is responsible for ending leader slots #5500

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2025
Merged

Conversation

mmcgee-jump
Copy link
Contributor

In full Firedancer the bank forks objects are implicitly refcounted by the leader pipeline, so they are acquired by pack and released by poh, because of this pack must "flush" the pipeline and give poh a way to guarantee the bank fork is not in use when it releases, which it can do by exactly sequencing the done packing messaage (must arrive after the bank microblocks).

@mmcgee-jump mmcgee-jump added this to the Frankendancer milestone Jun 30, 2025
@mmcgee-jump mmcgee-jump requested a review from ptaffet-jump June 30, 2025 18:07
In full Firedancer the bank forks objects are implicitly refcounted by
the leader pipeline, so they are acquired by pack and released by poh,
because of this pack must "flush" the pipeline and give poh a way to
guarantee the bank fork is not in use when it releases, which it can do
by exactly sequencing the done packing messaage (must arrive after the
bank microblocks).
@@ -511,6 +512,7 @@ unprivileged_init( fd_topo_t * topo,
if( FD_LIKELY( !strcmp( link->name, "plugin_out" ) ) ) ctx->in_kind[ i ] = IN_KIND_PLUGIN;
else if( FD_LIKELY( !strcmp( link->name, "poh_pack" ) ) ) ctx->in_kind[ i ] = IN_KIND_POH_PACK;
else if( FD_LIKELY( !strcmp( link->name, "pack_bank" ) ) ) ctx->in_kind[ i ] = IN_KIND_PACK_BANK;
else if( FD_LIKELY( !strcmp( link->name, "pack_poh" ) ) ) ctx->in_kind[ i ] = IN_KIND_PACK_POH;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
else if( FD_LIKELY( !strcmp( link->name, "pack_poh" ) ) ) ctx->in_kind[ i ] = IN_KIND_PACK_POH;
else if( FD_LIKELY( !strcmp( link->name, "pack_poh" ) ) ) ctx->in_kind[ i ] = IN_KIND_PACK_POH;

@mmcgee-jump mmcgee-jump added this pull request to the merge queue Jul 7, 2025
Merged via the queue into main with commit f9ff20d Jul 7, 2025
11 checks passed
@mmcgee-jump mmcgee-jump deleted the mmcgee/lpipe3 branch July 7, 2025 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants