Compare commits

...

2 Commits

Author SHA1 Message Date
YuQing 688211fbcd correct compile error 2025-11-03 15:22:45 +08:00
YuQing 1b2f521b99 uring cancel callback release task correctly 2025-11-03 14:56:29 +08:00
1 changed files with 5 additions and 1 deletions

View File

@ -73,8 +73,12 @@ static int sf_uring_cancel_done(int sock, const int event, void *arg)
task = (struct fast_task_info *)arg;
if (event != IOEVENT_TIMEOUT) {
if (task->handler->use_io_uring || (FC_URING_OP_TYPE(task) !=
IORING_OP_NOP && task->event.res == -ECANCELED))
{
CLEAR_OP_TYPE_AND_RELEASE_TASK(task);
}
}
return 0;
}
#endif