]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: define fatal assert build time tunable
authorBrian Foster <bfoster@redhat.com>
Thu, 15 Jun 2017 04:29:13 +0000 (21:29 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 19 Jun 2017 15:59:10 +0000 (08:59 -0700)
commita52055bf2ac1bd59bec9af899ff69aad1c354177
tree748f34ddc548e817ac3ec698d943c0ee10ac3444
parent2d8b36f9a8cbe6fa898c4df6baafe30fbd46a3c5
xfs: define fatal assert build time tunable

While configurable at runtime, the DEBUG mode assert failure
behavior is usually either desired or not for a particular
situation. For example, developers using kernel modules may prefer
for fatal asserts to remain disabled across module reloads while QE
engineers doing broad regression testing may prefer to have fatal
asserts enabled on boot to facilitate data collection for bug
reports.

To provide a compromise/convenience for developers, create a Kconfig
option that sets the default value of the DEBUG mode 'bug_on_assert'
sysfs tunable. The default behavior remains to trigger kernel BUGs
on assert failures to preserve existing behavior across kernel
configuration updates with DEBUG mode enabled.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/Kconfig
fs/xfs/xfs.h
fs/xfs/xfs_globals.c