io_uring: fix double poll mask init
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 16 Oct 2020 19:55:56 +0000 (20:55 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 17 Oct 2020 15:25:47 +0000 (09:25 -0600)
commit58852d4d673760cf7c88b9360b3c24a041bec298
tree65598b120d54e3a9710c8aa16eb514fe116845d7
parent4ea33a976bfe79293965d0815e1914e4b6e58967
io_uring: fix double poll mask init

__io_queue_proc() is used by both, poll reqs and apoll. Don't use
req->poll.events to copy poll mask because for apoll it aliases with
private data of the request.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c