linux/io_uring
Pavel Begunkov de08356f48 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>
2022-07-24 18:39:16 -06:00
..
2022-07-24 18:39:15 -06:00
2022-07-24 18:39:15 -06:00
2022-07-24 18:39:11 -06:00
2022-07-24 18:39:12 -06:00
2022-07-24 18:39:14 -06:00
2022-07-24 18:39:15 -06:00
2022-07-24 18:39:15 -06:00
2022-07-24 18:39:15 -06:00
2022-07-24 18:39:15 -06:00