]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: add args to workqueue lockdep name
authorLi Zhong <zhong@linux.vnet.ibm.com>
Fri, 14 Feb 2014 02:52:57 +0000 (10:52 +0800)
committerTejun Heo <tj@kernel.org>
Fri, 14 Feb 2014 14:05:39 +0000 (09:05 -0500)
commit754f16db7a9bb4fb7f235928425f560b9aa9292f
tree112c14c7251d8068576a5941b4d0c37793d4c142
parent6333ef0a6d756a72c48035feae2450b64f0372e4
workqueue: add args to workqueue lockdep name

Tommi noticed a 'funny' lock class name: "%s#5" from a lock acquired in
process_one_work().

Maybe #fmt plus #args could be used as the lock_name to give some more
information for some fmt string like the above.

__builtin_constant_p() check is removed (as there seems no good way to
check all the variables in args list). However, by removing the check,
it only adds two additional "s for those constants.

Some lockdep name examples printed out after the change:

lockdep name                    wq->name

"events_long"                   events_long
"%s"("khelper")                 khelper
"xfs-data/%s"mp->m_fsname       xfs-data/dm-3

Signed-off-by: Li Zhong <zhong@linux.vnet.ibm.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/workqueue.h