io_uring/uring_cmd: take advantage of completion batching
authorJens Axboe <axboe@kernel.dk>
Wed, 12 Apr 2023 18:07:36 +0000 (12:07 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 12 Apr 2023 18:07:36 +0000 (12:07 -0600)
commit27a67079c0e548d5c3232c40951517cfa630fe51
treebccb34ab7a3cd613af685f1f43ad669aa40a6980
parent360cd42c4e95ff06d8d7b0a54e42236c7e7c187f
io_uring/uring_cmd: take advantage of completion batching

We know now what the completion context is for the uring_cmd completion
handling, so use that to have io_req_task_complete() decide what the
best way to complete the request is. This allows batching of the posted
completions if we have multiple pending, rather than always doing them
one-by-one.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/uring_cmd.c