summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/super.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-01-20 23:31:31 +0100
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:08:51 +0200
commita5cd80ea99e544b67acde573fc2a2dd68659fd40 (patch)
treefb36475ff94e9e3269b2ba824170b21887eab991 /fs/bcachefs/super.c
parentbcachefs: Don't allocate stripes at POS_MIN (diff)
downloadlinux-a5cd80ea99e544b67acde573fc2a2dd68659fd40.tar.xz
linux-a5cd80ea99e544b67acde573fc2a2dd68659fd40.zip
bcachefs: Fix an assertion pop
There was a race: btree node writes drop their reference on journal pins before clearing the btree_node_write_in_flight flag. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to '')
-rw-r--r--fs/bcachefs/super.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c
index f46b4b05b4aa..2b3fb07fbc4d 100644
--- a/fs/bcachefs/super.c
+++ b/fs/bcachefs/super.c
@@ -242,10 +242,7 @@ nowrote_alloc:
* the journal kicks off btree writes via reclaim - wait for in flight
* writes after stopping journal:
*/
- if (test_bit(BCH_FS_EMERGENCY_RO, &c->flags))
- bch2_btree_flush_all_writes(c);
- else
- bch2_btree_verify_flushed(c);
+ bch2_btree_flush_all_writes(c);
/*
* After stopping journal: