]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: don't add non-IO requests to iopoll pending list
authorJens Axboe <axboe@kernel.dk>
Wed, 20 May 2020 03:20:27 +0000 (21:20 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 20 May 2020 03:20:27 +0000 (21:20 -0600)
commit2d3b243d7e23ac8bb97022b27b455170fac85388
tree52a03cd85fefa3df584a26813bc5a63fdaf39fc8
parent52802a0f2f960b4b7035d11acd12fb2fd7520546
io_uring: don't add non-IO requests to iopoll pending list

We normally disable any commands that aren't specifically poll commands
for a ring that is setup for polling, but we do allow buffer provide and
remove commands to support buffer selection for polled IO. Once a
request is issued, we add it to the poll list to poll for completion. But
we should not do that for non-IO commands, as those request complete
inline immediately and aren't pollable. If we do, we can leave requests
on the iopoll list after they are freed.

Fixes: 1300e8f74dc9 ("io_uring: add IORING_OP_PROVIDE_BUFFERS")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c