summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-06-23 14:24:48 +0100
committerJens Axboe <axboe@kernel.dk>2022-07-24 18:39:16 -0600
commitde08356f4858628fdffb8bd7e9cceb60c7e08ead (patch)
tree2a551cecc6e6722107b38d2501b2fbbfd9c397e8 /include/uapi
parent063a007996bf725ba4c7d8741701670be9858300 (diff)
downloadlinux-de08356f4858628fdffb8bd7e9cceb60c7e08ead.tar.gz
linux-de08356f4858628fdffb8bd7e9cceb60c7e08ead.tar.bz2
linux-de08356f4858628fdffb8bd7e9cceb60c7e08ead.zip
io_uring: refactor poll arm error handling
__io_arm_poll_handler() errors parsing is a horror, in case it failed it returns 0 and the caller is expected to look at ipt.error, which already led us to a number of problems before. When it returns a valid mask, leave it as it's not, i.e. return 1 and store the mask in ipt.result_mask. In case of a failure that can be handled inline return an error code (negative value), and return 0 if __io_arm_poll_handler() took ownership of the request and will complete it. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/018cacdaef5fe95d7dc56b32e85d752cab7607f6.1655990418.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions