Re: [PATCH] kernfs: Clarify lockdep name for kn->count

2017-08-17 Thread Tejun Heo
On Thu, Aug 17, 2017 at 11:49:56AM -0400, Waiman Long wrote: > The reference count in kernfs_node structure is treated like a rwsem by > using lockdep instrumentation code. The lockdep name, however, is still > "s_active" which is carried over from the old sysfs code. As s_active > is no longer the

[PATCH] kernfs: Clarify lockdep name for kn->count

2017-08-17 Thread Waiman Long
The reference count in kernfs_node structure is treated like a rwsem by using lockdep instrumentation code. The lockdep name, however, is still "s_active" which is carried over from the old sysfs code. As s_active is no longer the variable name, its use may confuse users on where the lock is when i