]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite2de9ac250dd3755643069452671cfd2212e1815
tree50c16049c93d1416f25e6666e81bd0fbce2e3f47
parent9c6981b4a0bf51658f192c5bb08e513a2e984cc4
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: 6f1a64234936 ("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