sculpt: restart depot_rom on use/unuse

Large deployments (e.g., using the Falkon browser) can significantly
inflate the RAM quota of depot_rom. When switching the Sculpt storage
target (using the "Use" buttons), depot_rom is restarted. Right now,
however, it retains its (inflated) quota. It is better to reset the
quota to its initial value to free up RAM that thereby becomes usable
for a different deployment. Otherwise, the depot_rom's resources can be
deflated only by rebooting.
This commit is contained in:
Norman Feske 2024-11-05 11:13:33 +01:00 committed by Christian Helmuth
parent 8d50d320e2
commit fdd2b4edb0

View File

@ -263,6 +263,9 @@ struct Sculpt::Deploy
void restart()
{
cached_depot_rom_state .trigger_restart();
uncached_depot_rom_state.trigger_restart();
/* ignore stale query results */
_depot_query.trigger_depot_query();