diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index a58edde43bee..089b69b685d9 100644 --- a/fs/bcachefs/super.c +++ b/fs/bcachefs/super.c @@ -684,6 +684,7 @@ void bch2_fs_free(struct bch_fs *c) if (ca) { EBUG_ON(atomic_long_read(&ca->ref) != 1); bch2_dev_io_ref_stop(ca, READ); + bch2_dev_io_ref_stop(ca, WRITE); bch2_free_super(&ca->disk_sb); bch2_dev_free(ca); }