]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: make IORING_POLL_ADD and IORING_POLL_REMOVE deferrable
authorJens Axboe <axboe@kernel.dk>
Wed, 18 Dec 2019 01:40:57 +0000 (18:40 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 18 Dec 2019 02:57:27 +0000 (19:57 -0700)
commit24c49bab46554a36c7e7f9d30d1ffc4c52cc7d2b
treeb8c6153da9052d629dbc47fa127f8af6d8223ce5
parent299749dc5b7d56539c2f6f0631044b597b41b00d
io_uring: make IORING_POLL_ADD and IORING_POLL_REMOVE deferrable

If we defer these commands as part of a link, we have to make sure that
the SQE data has been read upfront. Integrate the poll add/remove into
the prep handling to make it safe for SQE reuse.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c