[PATCH v2 3/5] locking/lockdep: Add a faster path in __lock_release()

2018-10-02 Thread Waiman Long
When __lock_release() is called, the most likely unlock scenario is on the innermost lock in the chain. In this case, we can skip some of the checks and provide a faster path to completion. Signed-off-by: Waiman Long --- kernel/locking/lockdep.c | 17 ++--- 1 file changed, 14

[PATCH v2 3/5] locking/lockdep: Add a faster path in __lock_release()

2018-10-02 Thread Waiman Long
When __lock_release() is called, the most likely unlock scenario is on the innermost lock in the chain. In this case, we can skip some of the checks and provide a faster path to completion. Signed-off-by: Waiman Long --- kernel/locking/lockdep.c | 17 ++--- 1 file changed, 14