Message ID | 20230405000827.2250965-7-cascardo@canonical.com |
---|---|
State | New |
Headers | show |
Series | [UBUNTU,OEM-6.0,1/5] io_uring: update res mask in io_poll_check_events | expand |
diff --git a/io_uring/poll.c b/io_uring/poll.c index 0d9f49c575e0..8c7af09a81d8 100644 --- a/io_uring/poll.c +++ b/io_uring/poll.c @@ -256,6 +256,9 @@ static int io_poll_check_events(struct io_kiocb *req, bool *locked) return ret; } + /* force the next iteration to vfs_poll() */ + req->cqe.res = 0; + /* * Release all references, retry if someone tried to restart * task_work while we were executing it.