summaryrefslogtreecommitdiff
path: root/fs/bcachefs/io.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-02-09 22:48:54 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:50 +0300
commit60b5538877a2d34396280615484b995911e09b69 (patch)
tree5b77bae3dfe5a41c745e91da6474e694d3f964e1 /fs/bcachefs/io.c
parentd94189ad568f6cbd80d372cf7aa6e4898b6c5c17 (diff)
downloadlinux-60b5538877a2d34396280615484b995911e09b69.tar.xz
bcachefs: trans->notrace_relock_fail
When we unlock in order to submit IO, the next relock event is likely to fail if submit_bio() blocked - we shouldn't those events in our _fail stats, since those are expected events and shouldn't cause test failures. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/io.c')
-rw-r--r--fs/bcachefs/io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/bcachefs/io.c b/fs/bcachefs/io.c
index bd55c4b41d7c..b57187ce1f65 100644
--- a/fs/bcachefs/io.c
+++ b/fs/bcachefs/io.c
@@ -2375,6 +2375,12 @@ get_bio:
else
submit_bio_wait(&rbio->bio);
}
+
+ /*
+ * We just submitted IO which may block, we expect relock fail
+ * events and shouldn't count them:
+ */
+ trans->notrace_relock_fail = true;
} else {
/* Attempting reconstruct read: */
if (bch2_ec_read_extent(c, rbio)) {