xref: /openbmc/linux/drivers/md/bcache/Kconfig (revision c66fd019)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2cafe5635SKent Overstreet
3cafe5635SKent Overstreetconfig BCACHE
4cafe5635SKent Overstreet	tristate "Block device as cache"
5*c66fd019SChristoph Hellwig	select BLOCK_HOLDER_DEPRECATED if SYSFS
6d2359963SColy Li	select CRC64
7bc81b47eSColy Li	help
8cafe5635SKent Overstreet	Allows a block device to be used as cache for other devices; uses
9cafe5635SKent Overstreet	a btree for indexing and the layout is optimized for SSDs.
10cafe5635SKent Overstreet
115fb94e9cSMauro Carvalho Chehab	See Documentation/admin-guide/bcache.rst for details.
12cafe5635SKent Overstreet
13cafe5635SKent Overstreetconfig BCACHE_DEBUG
14cafe5635SKent Overstreet	bool "Bcache debugging"
15cafe5635SKent Overstreet	depends on BCACHE
16bc81b47eSColy Li	help
17cafe5635SKent Overstreet	Don't select this option unless you're a developer
18cafe5635SKent Overstreet
19280481d0SKent Overstreet	Enables extra debugging tools, allows expensive runtime checks to be
20280481d0SKent Overstreet	turned on.
21cafe5635SKent Overstreet
22cafe5635SKent Overstreetconfig BCACHE_CLOSURES_DEBUG
23cafe5635SKent Overstreet	bool "Debug closures"
24cafe5635SKent Overstreet	depends on BCACHE
25cafe5635SKent Overstreet	select DEBUG_FS
26bc81b47eSColy Li	help
27cafe5635SKent Overstreet	Keeps all active closures in a linked list and provides a debugfs
28cafe5635SKent Overstreet	interface to list them, which makes it possible to see asynchronous
29cafe5635SKent Overstreet	operations that get stuck.
300c8d3fceSColy Li
316acd193bSJean Delvareconfig BCACHE_ASYNC_REGISTRATION
320c8d3fceSColy Li	bool "Asynchronous device registration (EXPERIMENTAL)"
330c8d3fceSColy Li	depends on BCACHE
340c8d3fceSColy Li	help
350c8d3fceSColy Li	Add a sysfs file /sys/fs/bcache/register_async. Writing registering
360c8d3fceSColy Li	device path into this file will returns immediately and the real
370c8d3fceSColy Li	registration work is handled in kernel work queue in asynchronous
380c8d3fceSColy Li	way.
39