diff options
| author | Pavel Begunkov <[email protected]> | 2019-11-19 20:32:50 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2019-11-26 02:56:06 +0000 |
| commit | 09fbb0a83ec6ab5a4037766261c031151985fff6 (patch) | |
| tree | b69a9e99f4743f4ca13c0ce3d14044b18ac65d30 /tools/perf/scripts/python/intel-pt-events.py | |
| parent | io_uring: remove redundant check (diff) | |
| download | kernel-09fbb0a83ec6ab5a4037766261c031151985fff6.tar.gz kernel-09fbb0a83ec6ab5a4037766261c031151985fff6.zip | |
io_uring: Fix leaking linked timeouts
let have a dependant link: REQ -> LINK_TIMEOUT -> LINK_TIMEOUT
1. submission stage: submission references for REQ and LINK_TIMEOUT
are dropped. So, references respectively (1,1,2)
2. io_put(REQ) + FAIL_LINKS stage: calls io_fail_links(), which for all
linked timeouts will call cancel_timeout() and drop 1 reference.
So, references after: (0,0,1). That's a leak.
Make it treat only the first linked timeout as such, and pass others
through __io_double_put_req().
Signed-off-by: Pavel Begunkov <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions
