bcachefs: Start/stop io clock hands in read/write paths
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 17 Oct 2020 20:44:27 +0000 (16:44 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:44 +0000 (17:08 -0400)
commit289980195ffaa949ecd4216337a70a8e23cf8e86
tree263efa6b2b8ffc6205ba7b4a4984e5395ff47b32
parent8d6b6222bf168e7a0613c0baf3da30f2c7338488
bcachefs: Start/stop io clock hands in read/write paths

This fixes a bug where the clock hands in the journal and superblock
didn't match, because we were still incrementing the read clock hand
while read-only.

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