io_uring: split off IOPOLL argument verifiction
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 22 Mar 2022 14:07:56 +0000 (14:07 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 17 Apr 2022 22:51:24 +0000 (16:51 -0600)
commite8e1169ee3d598392906e04b7181a8cdf50f9d9b
tree26d0c439a6633686f40593f3c4e64fdf126576d6
parent1974d4772e9397d4374f1c85be82057136db9912
io_uring: split off IOPOLL argument verifiction

IOPOLL doesn't use additional arguments like sigsets, but it still
needs some basic verification, which is currently done by
io_get_ext_arg(). This patch adds a separate function for the IOPOLL
path, which is a bit simpler and doesn't do extra. This prepares us for
further patches, which would have hurt inlining in the hot path otherwise.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/71b23fca412e3374b74be7711cfd42a3d9d5dfe0.1647957378.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c