Skip to content

Commit a717320

Browse files
Copilotithewei
andcommitted
Add clarifying comment for error event mapping in io_uring backend
Co-authored-by: ithewei <26049660+ithewei@users.noreply.github.com>
1 parent 95c4a6d commit a717320

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

event/io_uring.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ int iowatcher_poll_events(hloop_t* loop, int timeout) {
182182
if (io == NULL) continue;
183183

184184
if (cqe->res < 0) {
185+
// Poll request failed: notify registered events, or both if none registered
185186
io->revents |= (io->events ? io->events : HV_RDWR);
186187
EVENT_PENDING(io);
187188
++nevents;

0 commit comments

Comments
 (0)