bcachefs: Fix for copygc getting stuck waiting for reserve to be filled
authorKent Overstreet <kent.overstreet@gmail.com>
Sun, 18 Apr 2021 22:01:49 +0000 (18:01 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:54 +0000 (17:08 -0400)
commit2ee47eec44f0613d6c51d88f8c820a5e8ed624a3
tree32089e6eb74857812f93cff20124bf68983a82db
parentbae895a5a3300c2da605dd0c841e175c4c9e5872
bcachefs: Fix for copygc getting stuck waiting for reserve to be filled

This fixes a regression from the patch
  bcachefs: Fix copygc dying on startup

In general only the allocator thread itself should be updating
ca->allocator_state, the thread waking up the allocator setting it is an
ugly hack only needed to avoid racing with the copygc threads when we're
first starting up.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_background.h
fs/bcachefs/super.c