io_uring: fix POLL_REMOVE removing apoll
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 14 Apr 2021 12:38:35 +0000 (13:38 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 14 Apr 2021 16:43:42 +0000 (10:43 -0600)
commit9ba5fac8cf3b607652397f863dc229bbc8c3cbc1
tree50c16049c93d1416f25e6666e81bd0fbce2e3f47
parent7f00651aebc9af600be1d9df2a775eeeaee6bebb
io_uring: fix POLL_REMOVE removing apoll

Don't allow REQ_OP_POLL_REMOVE to kill apoll requests, users should not
know about it. Also, remove weird -EACCESS in io_poll_update(), it
shouldn't know anything about apoll, and have to work even if happened
to have a poll and an async poll'ed request with same user_data.

Fixes: b69de288e913 ("io_uring: allow events and user_data update of running poll requests")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c