diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-10-20 14:11:31 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-10-20 14:11:31 -0400 |
| commit | 689719e0a1f139e28e57a4df334d5fde354b3379 (patch) | |
| tree | 2b5e0d0c4aced4886ff3c67729adceba45cac3b0 /source/io.c | |
| parent | baa6f9cdea938c06435635f906b128f7940a59ec (diff) | |
config parse cli arguments
Diffstat (limited to 'source/io.c')
| -rw-r--r-- | source/io.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/io.c b/source/io.c index 0cd8480..8f3db55 100644 --- a/source/io.c +++ b/source/io.c @@ -52,6 +52,7 @@ kpl_object_task *kpl_io_uring_get_completed(kpl_io_uring *io_uring) { cring_head++; __atomic_store_n(io_uring->cring_head, cring_head, __ATOMIC_RELEASE); io_uring->submitted_to_kernel--; + task->object_flags &= ~KPL_OBJECT_FLAGS_IO_PENDING; return task; } @@ -77,6 +78,7 @@ struct io_uring_sqe *kpl_io_uring_op(kpl_io_uring *io_uring, kpl_object_task *ta __atomic_store_n(io_uring->sring_tail, sring_tail, __ATOMIC_RELEASE); io_uring->added_to_queue++; memset(sqe, 0, sizeof(struct io_uring_sqe)); + task->object_flags |= KPL_OBJECT_FLAGS_IO_PENDING; sqe->user_data = (uint64_t) task; sqe->opcode = op; sqe->fd = fd; |
