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

From
Hillf Danton <hidden>
Date
2026-10-29 23:42:07
Also in
keyrings, lkml
Reply to
Jarkko Sakkinen, 2026-10-29
On Thu, 29 Oct 2026 19:29:17 +0200 Jarkko Sakkinen wrote:
key_garbage_collector() has a design that is not resistant enough for
workqueue lockups. The duration scales up relative to the number of items
in the serial tree, which causes a reoccuring theme of being guilty of
causing workqueue lockups.
Given cond_resched() the gc work is not a cpu hog, and given concurrency
workqueue can get individual cpu highly overloaded in short time, so what
you delivered is a half backed croissant, HBC, as you failed to make it
clear why lockup occurs when the number of gc items rockets up.
Thread (10 messages) 10 messages, 3 authors, last reply 25d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help