On Mon, Feb 13, 2023 at 10:27:18AM +0100, Peter Zijlstra wrote: > On Sun, Feb 12, 2023 at 03:19:16PM -0500, Alan Stern wrote: > > > (Device names are often set after the device is initialized. Does > > lockdep mind if a lock_class_key's name is changed after it has been > > registered?) > > It does, althought I don't at the moment recall how hard it would be to > change that. If the names are only used for printing purposes, or other similarly innocuous things, it ought to be enough to set the name with smp_store_release() and read the name with smp_load_acquire(). Alan Stern