Auto-guess atomic_write_size from /sys

This commit is contained in:
Vitaliy Filippov
2025-12-02 01:52:12 +03:00
parent eaff4509ca
commit 959f792f82
8 changed files with 48 additions and 2 deletions
+2
View File
@@ -444,6 +444,8 @@ resume_10:
data->iov = (struct iovec){ op->buf, op->len };
data->callback = [this, op](ring_data_t *data) { handle_write_event(data, op); };
io_uring_prep_writev(sqe, dsk.data_fd, &data->iov, 1, dsk.data_offset + PRIV(op)->location + op->offset);
if (dsk.use_atomic_flag)
sqe->rw_flags = RWF_ATOMIC;
PRIV(op)->pending_ops++;
PRIV(op)->op_state = 7;
return 1;