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)
commita58e88bfdc4d527f99827b8d66ecf68d05c3ac87
tree6ed66932f4f6c7a8e13bee40c67643d76cb7159d
parentdc4d137ee3b79a7474b747b4b326d472ccc2cb79
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