io_uring: fix double poll mask init io_uring-5.10-next
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 16 Oct 2020 19:55:56 +0000 (20:55 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 16 Oct 2020 21:08:06 +0000 (15:08 -0600)
commit6c86f313603838b32d4f1dcdd382da155e8359cf
tree88c9e0a8d76c36d772c51fd309b837c2a03cbb2c
parent083d16268aaf9288fa03596360054bd46dc72446
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