OSDN Git Service

io_uring: retry poll if we got woken with non-matching mask
authorJens Axboe <axboe@kernel.dk>
Fri, 3 Apr 2020 17:10:14 +0000 (11:10 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 3 Apr 2020 17:35:48 +0000 (11:35 -0600)
commita6ba632d2c249a4390289727c07b8b55eb02a41d
treea672727c41cae975ace50616232c8b4964e3fb65
parent10bea96dcc13ad841d53bdcc9d8e731e9e0ad58f
io_uring: retry poll if we got woken with non-matching mask

If we get woken and the poll doesn't match our mask, re-add the task
to the poll waitqueue and try again instead of completing the request
with a mask of 0.

Reported-by: Dan Melnic <dmm@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c