Re: [PATCH v6] KEYS: key_garbage_collector(): process in chunks

From: Jarkko Sakkinen

Date: Fri Oct 30 2026 - 16:04:29 EST


On Fri, Oct 30, 2026 at 06:49:45PM +0200, Jarkko Sakkinen wrote:
> Interesting :-) It has been idential other than block size change
> for v4, v5 and v6 and updating benchmark result but this is the
> first version with Sashiko feedback.
>
> Looking into it...

Couple of things:

1. Sashiko reported issue, which would result key_gc_schedule_links()
call in the place of key_gc_schedule_work().
2. I think it would be best if flags were set in the expired case
with a single atomic operation, which does not realize now when
key_gc_schedule_links()->key_gc_schedule_work() call path is
used.

I'll address the both issues.

Br, Jarkko