diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-09-08 18:30:32 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:44 -0400 |
commit | d5e4dcc29cce41b4bb51bf83c54940018d57e598 (patch) | |
tree | 7d2fb3fcb3bac1f107f84208c1e33dec286d5a9c /fs/bcachefs/super.h | |
parent | 625104ea21386361b60d20ae696b9df6111236f5 (diff) |
bcachefs: Fix unmount path
There was a long standing race in the mount/unmount code - the VFS
intends for mount/unmount synchronizatino to be handled by the list of
superblocks, but we were still holding devices open after tearing down
our superblock in the unmount path.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super.h')
-rw-r--r-- | fs/bcachefs/super.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/super.h b/fs/bcachefs/super.h index fab4bee9c90e..795229e2d6a1 100644 --- a/fs/bcachefs/super.h +++ b/fs/bcachefs/super.h @@ -230,6 +230,8 @@ static inline void bch2_fs_lazy_rw(struct bch_fs *c) bch2_fs_read_write_early(c); } +void __bch2_fs_stop(struct bch_fs *); +void bch2_fs_free(struct bch_fs *); void bch2_fs_stop(struct bch_fs *); int bch2_fs_start(struct bch_fs *); |