Skip to content

Commit 48e1437

Browse files
Update ext/io/event/selector/uring.c
Co-authored-by: Tavian Barnes <tavianator@tavianator.com>
1 parent 0e6f2fe commit 48e1437

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/io/event/selector/uring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ unsigned select_process_completions(struct IO_Event_Selector_URing *selector) {
11781178

11791179
// Interrupt read completion — the read already consumed the counter.
11801180
// Clear the flag so the next blocking wait re-submits the read.
1181-
if (cqe->user_data == (uint64_t)(uintptr_t)&selector->interrupt) {
1181+
if (io_uring_cqe_get_data(cqe) == &selector->interrupt) {
11821182
selector->wakeup_registered = 0;
11831183
io_uring_cq_advance(ring, 1);
11841184
continue;

0 commit comments

Comments
 (0)