mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
bcachefs: Fix an allocator startup race
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
e01dacf76c
commit
220d206232
@ -1177,6 +1177,8 @@ static int bch2_dev_alloc(struct bch_fs *c, unsigned dev_idx)
|
||||
if (!ca)
|
||||
goto err;
|
||||
|
||||
ca->fs = c;
|
||||
|
||||
if (ca->mi.state == BCH_MEMBER_STATE_RW &&
|
||||
bch2_dev_allocator_start(ca)) {
|
||||
bch2_dev_free(ca);
|
||||
|
Loading…
Reference in New Issue
Block a user