1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only 2*4882a593Smuzhiyun 3*4882a593Smuzhiyunconfig BCACHE 4*4882a593Smuzhiyun tristate "Block device as cache" 5*4882a593Smuzhiyun select CRC64 6*4882a593Smuzhiyun help 7*4882a593Smuzhiyun Allows a block device to be used as cache for other devices; uses 8*4882a593Smuzhiyun a btree for indexing and the layout is optimized for SSDs. 9*4882a593Smuzhiyun 10*4882a593Smuzhiyun See Documentation/admin-guide/bcache.rst for details. 11*4882a593Smuzhiyun 12*4882a593Smuzhiyunconfig BCACHE_DEBUG 13*4882a593Smuzhiyun bool "Bcache debugging" 14*4882a593Smuzhiyun depends on BCACHE 15*4882a593Smuzhiyun help 16*4882a593Smuzhiyun Don't select this option unless you're a developer 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun Enables extra debugging tools, allows expensive runtime checks to be 19*4882a593Smuzhiyun turned on. 20*4882a593Smuzhiyun 21*4882a593Smuzhiyunconfig BCACHE_CLOSURES_DEBUG 22*4882a593Smuzhiyun bool "Debug closures" 23*4882a593Smuzhiyun depends on BCACHE 24*4882a593Smuzhiyun select DEBUG_FS 25*4882a593Smuzhiyun help 26*4882a593Smuzhiyun Keeps all active closures in a linked list and provides a debugfs 27*4882a593Smuzhiyun interface to list them, which makes it possible to see asynchronous 28*4882a593Smuzhiyun operations that get stuck. 29*4882a593Smuzhiyun 30*4882a593Smuzhiyunconfig BCACHE_ASYNC_REGISTRATION 31*4882a593Smuzhiyun bool "Asynchronous device registration (EXPERIMENTAL)" 32*4882a593Smuzhiyun depends on BCACHE 33*4882a593Smuzhiyun help 34*4882a593Smuzhiyun Add a sysfs file /sys/fs/bcache/register_async. Writing registering 35*4882a593Smuzhiyun device path into this file will returns immediately and the real 36*4882a593Smuzhiyun registration work is handled in kernel work queue in asynchronous 37*4882a593Smuzhiyun way. 38