aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorPavel Begunkov <[email protected]>2020-04-06 00:08:52 +0300
committerJens Axboe <[email protected]>2020-04-05 16:23:48 -0600
commit48bdd849e967f1c573d2b2bc24308e24a83f39c2 (patch)
treee29af07d9384af6fda345ac51290cab9ad995766 /tools/perf/scripts/python/export-to-sqlite.py
parent581f981034890dfd27be7e98946e8f0461f3967a (diff)
io_uring: fix ctx refcounting in io_submit_sqes()
If io_get_req() fails, it drops a ref. Then, awhile keeping @submitted unmodified, io_submit_sqes() breaks the loop and puts @nr - @submitted refs. For each submitted req a ref is dropped in io_put_req() and friends. So, for @nr taken refs there will be (@nr - @submitted + @submitted + 1) dropped. Remove ctx refcounting from io_get_req(), that at the same time makes it clearer. Fixes: 2b85edfc0c90 ("io_uring: batch getting pcpu references") Cc: [email protected] # v5.6 Signed-off-by: Pavel Begunkov <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions