diff options
author | Joe Thornber <ejt@redhat.com> | 2015-11-19 13:50:32 +0000 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2016-11-14 15:17:47 -0500 |
commit | 2e8ed71102ff8fe3919dd3a2d73ac4da72686efc (patch) | |
tree | 517679ff39a4d5c3901976181cf41c76e55be3fe /drivers/md/Kconfig | |
parent | a25f0944ba9b1d8a6813fd6f1a86f1bd59ac25a6 (diff) | |
download | talos-obmc-linux-2e8ed71102ff8fe3919dd3a2d73ac4da72686efc.tar.gz talos-obmc-linux-2e8ed71102ff8fe3919dd3a2d73ac4da72686efc.zip |
dm block manager: make block locking optional
The block manager's locking is useful for catching cycles that may
result from certain btree metadata corruption. But in general it serves
as a developer tool to catch bugs in code. Unless you're finding that
DM thin provisioning is hanging due to infinite loops within the block
manager's access to btree nodes you can safely disable this feature.
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de> # do/while(0) macro fix
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/Kconfig')
-rw-r--r-- | drivers/md/Kconfig | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/md/Kconfig b/drivers/md/Kconfig index 02a5345a44a6..b7767da50c26 100644 --- a/drivers/md/Kconfig +++ b/drivers/md/Kconfig @@ -240,9 +240,17 @@ config DM_BUFIO as a cache, holding recently-read blocks in memory and performing delayed writes. +config DM_DEBUG_BLOCK_MANAGER_LOCKING + bool "Block manager locking" + depends on DM_BUFIO + ---help--- + Block manager locking can catch various metadata corruption issues. + + If unsure, say N. + config DM_DEBUG_BLOCK_STACK_TRACING bool "Keep stack trace of persistent data block lock holders" - depends on STACKTRACE_SUPPORT && DM_BUFIO + depends on STACKTRACE_SUPPORT && DM_DEBUG_BLOCK_MANAGER_LOCKING select STACKTRACE ---help--- Enable this for messages that may help debug problems with the |