Commit b2c3f7e1 authored by Jens Axboe's avatar Jens Axboe

io_uring: abstract out helper for removing poll waitqs/hashes

No functional changes in this patch, just preparation for kill multishot
poll on CQ overflow.
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 88e41cf9
...@@ -5216,7 +5216,7 @@ static bool __io_poll_remove_one(struct io_kiocb *req, ...@@ -5216,7 +5216,7 @@ static bool __io_poll_remove_one(struct io_kiocb *req,
return do_complete; return do_complete;
} }
static bool io_poll_remove_one(struct io_kiocb *req) static bool io_poll_remove_waitqs(struct io_kiocb *req)
{ {
bool do_complete; bool do_complete;
...@@ -5236,6 +5236,14 @@ static bool io_poll_remove_one(struct io_kiocb *req) ...@@ -5236,6 +5236,14 @@ static bool io_poll_remove_one(struct io_kiocb *req)
} }
} }
return do_complete;
}
static bool io_poll_remove_one(struct io_kiocb *req)
{
bool do_complete;
do_complete = io_poll_remove_waitqs(req);
if (do_complete) { if (do_complete) {
io_cqring_fill_event(req, -ECANCELED); io_cqring_fill_event(req, -ECANCELED);
io_commit_cqring(req->ctx); io_commit_cqring(req->ctx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment