]> git.baikalelectronics.ru Git - kernel.git/commit
locking/csd_lock: Add boot parameter for controlling CSD lock debugging
authorJuergen Gross <jgross@suse.com>
Mon, 1 Mar 2021 10:13:34 +0000 (11:13 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 6 Mar 2021 11:49:48 +0000 (12:49 +0100)
commit28910adbeceb8b57e6a65eaff6a81afb6e2ae4b8
tree6a6051ad28d3e33ba7fca07056bfc494823be9dd
parent657b483698a35eb63ea5a179e027a97aab28c19a
locking/csd_lock: Add boot parameter for controlling CSD lock debugging

Currently CSD lock debugging can be switched on and off via a kernel
config option only. Unfortunately there is at least one problem with
CSD lock handling pending for about 2 years now, which has been seen
in different environments (mostly when running virtualized under KVM
or Xen, at least once on bare metal). Multiple attempts to catch this
issue have finally led to introduction of CSD lock debug code, but
this code is not in use in most distros as it has some impact on
performance.

In order to be able to ship kernels with CONFIG_CSD_LOCK_WAIT_DEBUG
enabled even for production use, add a boot parameter for switching
the debug functionality on. This will reduce any performance impact
of the debug coding to a bare minimum when not being used.

Signed-off-by: Juergen Gross <jgross@suse.com>
[ Minor edits. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210301101336.7797-2-jgross@suse.com
Documentation/admin-guide/kernel-parameters.txt
kernel/smp.c