]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb3240a6429f057f2d73f1063c41eea1749ebfd9
tree65598b120d54e3a9710c8aa16eb514fe116845d7
parentee64980f21e234ff036bf76e592a8920bd7b9eb0
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