forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/md/bcache/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12
23 config BCACHE
34 tristate "Block device as cache"
....@@ -25,3 +26,12 @@
2526 Keeps all active closures in a linked list and provides a debugfs
2627 interface to list them, which makes it possible to see asynchronous
2728 operations that get stuck.
29
+
30
+config BCACHE_ASYNC_REGISTRATION
31
+ bool "Asynchronous device registration (EXPERIMENTAL)"
32
+ depends on BCACHE
33
+ help
34
+ Add a sysfs file /sys/fs/bcache/register_async. Writing registering
35
+ device path into this file will returns immediately and the real
36
+ registration work is handled in kernel work queue in asynchronous
37
+ way.