Commit 9c61856
Kent Overstreet
bcachefs: Call bch2_fs_start before getting vfs superblock
This reverts
1fdbe0b bcachefs: Make sure c->vfs_sb is set before starting fs
switched up bch2_fs_get_tree() so that we got a superblock before
calling bch2_fs_start, so that c->vfs_sb would always be initialized
while the filesystem was active.
This turned out not to be necessary, because blk_holder_ops were
implemented using our own locking, not vfs locking.
And this had the side effect of creating a super_block and doing our
full recovery (including potentially fsck) before setting SB_BORN, which
causes things like sync calls to hang until our recovery is finished.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>1 parent aed4ccb commit 9c61856
1 file changed
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2502 | 2502 | | |
2503 | 2503 | | |
2504 | 2504 | | |
2505 | | - | |
2506 | | - | |
2507 | | - | |
2508 | | - | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
2509 | 2508 | | |
2510 | 2509 | | |
2511 | 2510 | | |
| |||
2567 | 2566 | | |
2568 | 2567 | | |
2569 | 2568 | | |
2570 | | - | |
2571 | | - | |
2572 | | - | |
2573 | | - | |
2574 | 2569 | | |
2575 | 2570 | | |
2576 | 2571 | | |
| |||
0 commit comments