We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e2dc1d7 + 9ca440a commit 534f89cCopy full SHA for 534f89c
lib_eio_linux/sched.ml
@@ -521,7 +521,10 @@ let with_sched ?(fallback=no_fallback) config fn =
521
Uring.exit uring;
522
fallback (`Msg "Linux >= 5.15 is required for io_uring support")
523
) else (
524
- statx_works := Uring.op_supported probe Uring.Op.msg_ring;
+ (* The reason for an if here is to make sure we only set it once, when
525
+ the first domain is starting. This is just to avoid a tsan warning. *)
526
+ if not !statx_works && Uring.op_supported probe Uring.Op.msg_ring then
527
+ statx_works := true;
528
match
529
let mem =
530
let fixed_buf_len = block_size * n_blocks in
0 commit comments