Messages in this thread Patch in this message | | | From | Waiman Long <> | Subject | [PATCH v2 14/17] dma-debug: Mark free_entries_lock as terminal | Date | Mon, 19 Nov 2018 13:55:23 -0500 |
| |
By making free_entries_lock a terminal spinlock, it reduces the lockdep overhead when this lock is used.
Signed-off-by: Waiman Long <longman@redhat.com> --- kernel/dma/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/dma/debug.c b/kernel/dma/debug.c index 231ca46..f891688 100644 --- a/kernel/dma/debug.c +++ b/kernel/dma/debug.c @@ -106,7 +106,7 @@ struct hash_bucket { /* List of pre-allocated dma_debug_entry's */ static LIST_HEAD(free_entries); /* Lock for the list above */ -static DEFINE_SPINLOCK(free_entries_lock); +static DEFINE_TERMINAL_SPINLOCK(free_entries_lock); /* Global disable flag - will be set in case of an error */ static bool global_disable __read_mostly; -- 1.8.3.1
| |