diff options
author | 2022-05-28 09:51:09 +0800 | |
---|---|---|
committer | 2022-05-31 02:50:06 -0600 | |
commit | 4278a0deb1f6cac40ded3362fe2a9827d7efee3d (patch) | |
tree | df892c6de589ba3cf58a2a48619a23e9a74472f8 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | io_uring: ensure fput() called correspondingly when direct install fails (diff) | |
download | linux-dev-4278a0deb1f6cac40ded3362fe2a9827d7efee3d.tar.xz linux-dev-4278a0deb1f6cac40ded3362fe2a9827d7efee3d.zip |
io_uring: defer alloc_hint update to io_file_bitmap_set()
io_file_bitmap_get() returns a free bitmap slot, but if it isn't
used later, such as io_queue_rsrc_removal() returns error, in this
case, we should not update alloc_hint at all, which still should
be considered as a valid candidate for next io_file_bitmap_get()
calls.
To fix this issue, only update alloc_hint in io_file_bitmap_set().
Signed-off-by: Xiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220528015109.48039-1-xiaoguang.wang@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions