On Sun, Nov 15, 2026 at 01:28:56AM +0200, Jarkko Sakkinen wrote: > On Thu, Nov 12, 2026 at 06:02:29AM +0200, Jarkko Sakkinen wrote: > > 1. Replace key_type_dead retyping with module reference pinning so live > > keys and restrictions keep their backing key_type module loaded until > > key_gc_unused_keys() or keyring_destroy() completes. > > 2. Process serial-tree scans and graveyard destruction in fixed 64-key > > chunks to a bound workqueue execution latency without hurting overall > > throughput for a significant amount. > > > > The first part has a user-space visible effect: rmmod returns -EBUSY while > > keys or keyring restrictions still pin the backing module. > > > > Internal key caches or transport state bottlenecks are addressed by either > > clearing their private caches on last-client teardown or splitting key > > types into dedicated provider modules. > > This passes [email protected] and Sashiko other than the remark > about inline comment. > > I'll update the inline comment, and make the commits available at > -next. > > I'll leave S390 fixes out as they are out-of-band. They can be > picked from this patch set; or I can later on send a separate > patch set.
Done: https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git/log/?h=for-next-keys Br, Jarkko
