]> 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)
commit691d8b1dad55d6243683f72a2bce1f2380d1fa1c
tree65598b120d54e3a9710c8aa16eb514fe116845d7
parent993793ef74f4a42866921b81de4124a2fbbefe52
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