Skip to content

Commit 4900fb1

Browse files
committed
submit if queue is full to get spare SQE, when deinitializing
1 parent faf918a commit 4900fb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CIORingShims/PthreadCQHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void pthread_io_uring_deinit_cq_handler(uintptr_t handle,
7070
void *retval;
7171

7272
while ((sqe = io_uring_get_sqe(ring)) == nullptr)
73-
;
73+
io_uring_submit(ring);
7474

7575
io_uring_prep_nop(sqe);
7676
io_uring_sqe_set_data(sqe, reinterpret_cast<void *>(~0ULL));

0 commit comments

Comments
 (0)