]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: share register sysfs with async register
authorColy Li <colyli@suse.de>
Thu, 1 Oct 2020 06:50:42 +0000 (14:50 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 2 Oct 2020 20:25:29 +0000 (14:25 -0600)
commitfd40310de5342d61c1039332b11585dcdf086661
tree6ed66932f4f6c7a8e13bee40c67643d76cb7159d
parent70918fc785f3d5268ab622812b530e65caddbb58
bcache: share register sysfs with async register

Previously the experimental async registration uses a separate sysfs
file register_async. Now the async registration code seems working well
for a while, we can do furtuher testing with it now.

This patch changes the async bcache registration shares the same sysfs
file /sys/fs/bcache/register (and register_quiet). Async registration
will be default behavior if BCACHE_ASYNC_REGISTRATION is set in kernel
configure. By default, BCACHE_ASYNC_REGISTRATION is not configured yet.

Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/super.c