Re: [PATCH 12/15] stackdepot: add refcount for records

From: Andrey Konovalov
Date: Wed Sep 13 2023 - 13:08:47 EST


On Mon, Sep 4, 2023 at 8:56 PM Marco Elver <elver@xxxxxxxxxx> wrote:
>
> > WDYT about adding a new flavor of stack_depot_save called
> > stack_depot_save_get that would increment the refcount? And renaming
> > stack_depot_evict to stack_depot_put.
>
> If there are no other uses of stack_depot_get(), which seems likely,
> just stack_depot_save_get() seems ok.

Ok, I will implement a similar approach in v2: add another flag to
__stack_depot_save to avoid multiplying API functions.

Thanks!