Re: [PATCH net-next 0/2] net/sched: don't wait for RCU when destroying qdisc lockdep keys

From: Bart Van Assche

Date: Tue Oct 20 2026 - 13:31:17 EST


On 10/19/26 12:20 PM, Boqun Feng wrote:
I think my concern is still valid: for lockdep PoV,
lockdep_unregister_key_nosync() is an API that users have to use it
carefully, because it leaves the unregistration process in a stage that
you need to guarantee that the lockdep key reclamation is delayed by an
RCU grace period. Or in other words, do you have a way to prevent a user
from doing lockdep_unregister_key_nosync() but kfree(key), or some sort
of debugging to find a mis-use?

Kernel developers are assumed to know what they are doing. A clear comment above lockdep_unregister_key_nosync() should be sufficient.

Thanks,

Bart.