summaryrefslogtreecommitdiffstats
path: root/fs/dcache.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-11-24 00:55:59 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-11-24 02:30:32 -0500
commit468035ca4b83fd49be99a67b5aac3960d577c7c5 (patch)
treea3da16a4a78a86488fce0998a8ac342ab1037972 /fs/dcache.c
parent202a7c292ec65d5a602aa356f4fa4f50ff84cdee (diff)
downloadlinux-stable-468035ca4b83fd49be99a67b5aac3960d577c7c5.tar.gz
linux-stable-468035ca4b83fd49be99a67b5aac3960d577c7c5.tar.bz2
linux-stable-468035ca4b83fd49be99a67b5aac3960d577c7c5.zip
bcachefs: Start gc, copygc, rebalance threads after initing writes ref
This fixes a bug where copygc would occasionally race with going read-write and die, thinking we were read only, because it couldn't take a ref on c->writes. It's not necessary for copygc (or rebalance, or copygc) to take write refs; they could run with BCH_TRANS_COMMIT_nocheck_rw, but this is an easier fix that making sure that flag is passed correctly everywhere. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/dcache.c')
0 files changed, 0 insertions, 0 deletions