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)
commit0969e783e3a8913f79df27286501a6c21e961524
treeb8c6153da9052d629dbc47fa127f8af6d8223ce5
parentffbb8d6b76910d4f3a2bafeaf68c419011e98d05
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