]> git.itanic.dy.fi Git - linux-stable/commit
bcache: Alloc holder object before async registration
authorJan Kara <jack@suse.cz>
Thu, 22 Jun 2023 16:46:54 +0000 (18:46 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 23 Jun 2023 22:10:04 +0000 (16:10 -0600)
commitabcc0cbd49283fccd20420e86416b2475b00819c
tree4606004eba851fafebe5258fe56bbc753b9d5c36
parentc36591f6828b00f01e0b54ccacd603e55cdc45d0
bcache: Alloc holder object before async registration

Allocate holder object (cache or cached_dev) before offloading the
rest of the startup to async work. This will allow us to open the block
block device with proper holder.

Signed-off-by: Jan Kara <jack@suse.cz>
Acked-by: Coly Li <colyli@suse.de>
Reviewed-by: Kent Overstreet <kent.overstreet@linux.dev>
Link: https://lore.kernel.org/r/20230622164658.12861-1-jack@suse.cz
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/super.c