]> asedeno.scripts.mit.edu Git - linux.git/commit
debugobjects: Move printk out of db->lock critical sections
authorWaiman Long <longman@redhat.com>
Mon, 20 May 2019 14:14:50 +0000 (10:14 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 14 Jun 2019 12:51:16 +0000 (14:51 +0200)
commitd5f34153e526903abe71869dbbc898bfc0f69373
treed40ebb04fb282564a99b766956893d85cb72c0e4
parenta7344a68a79ab91bc38af4b9d24284b479aa780a
debugobjects: Move printk out of db->lock critical sections

The db->lock is a raw spinlock and so the lock hold time is supposed
to be short. This will not be the case when printk() is being involved
in some of the critical sections. In order to avoid the long hold time,
in case some messages need to be printed, the debug_object_is_on_stack()
and debug_print_object() calls are now moved out of those critical
sections.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Yang Shi <yang.shi@linux.alibaba.com>
Cc: "Joel Fernandes (Google)" <joel@joelfernandes.org>
Cc: Qian Cai <cai@gmx.us>
Cc: Zhong Jiang <zhongjiang@huawei.com>
Link: https://lkml.kernel.org/r/20190520141450.7575-6-longman@redhat.com
lib/debugobjects.c