Skip to content

Commit

Permalink
mesa: don't free pict before hamt get (#751)
Browse files Browse the repository at this point in the history
Blocking scries would never resolve since we were never updating the
CTAG_WAIT entry to CTAG_BLOCK
  • Loading branch information
pkova authored Dec 13, 2024
2 parents 829cf5f + a2f77bd commit 6e5f488
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/vere/io/mesa.c
Original file line number Diff line number Diff line change
Expand Up @@ -2106,16 +2106,14 @@ _mesa_page_scry_jumbo_cb(void* vod_p, u3_noun res)

if ( u3_none == pag ) {
// TODO: mark as dead
u3z(res);
_mesa_free_pict(pic_u);
u3_mesa_line* lin_u = _mesa_get_jumbo_cache(sam_u, nam_u);
_mesa_free_pict(pic_u);
u3z(res);
if ( NULL == lin_u ) {
return;
}
lin_u->typ_y = CTAG_BLOCK;
_mesa_put_jumbo_cache(sam_u, nam_u, lin_u);
u3l_log("mesa: jumbo frame missing");
log_pact(pac_u);
return;
}
u3_noun pac, pas, pof;
Expand Down

0 comments on commit 6e5f488

Please sign in to comment.