diff options
| author | Jens Axboe <axboe@kernel.dk> | 2019-10-29 12:34:10 -0600 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2019-10-29 15:43:30 -0600 |
| commit | 842f96124c5617b060cc0f071dcfb6ab24bdd042 (patch) | |
| tree | 2cd9617a5a7f63c53262dbd7aee1b5aefdaa3af7 /tools/perf/scripts/python | |
| parent | io_uring: support for larger fixed file sets (diff) | |
| download | linux-842f96124c5617b060cc0f071dcfb6ab24bdd042.tar.gz linux-842f96124c5617b060cc0f071dcfb6ab24bdd042.zip | |
io_uring: fix race with canceling timeouts
If we get -1 from hrtimer_try_to_cancel(), we know that the timer
is running. Hence leave all completion to the timeout handler. If
we don't, we can corrupt the list and miss a completion.
Fixes: 11365043e527 ("io_uring: add support for canceling timeout requests")
Reported-by: Hrvoje Zeba <zeba.hrvoje@gmail.com>
Tested-by: Hrvoje Zeba <zeba.hrvoje@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
