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, 24 Apr 2022 23:34:16 +0000 (17:34 -0600)
commitf81440d33cc61bd80f37e1045f0f5a21d043eed3
tree2f81f795bc03078ead7224a07a57d814d078b5d5
parent57859f4d93db3eecd5dd680d3b3520eea80c996b
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