diff options
author | Zizhi Wo <wozizhi@huawei.com> | 2025-05-06 10:09:28 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-05-13 12:08:27 -0600 |
commit | fd6c08b26460436ec0f53e125f8ded98738806f1 (patch) | |
tree | 75c14cf0cc616d875397972a853d62af59ec18ca /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cf724e5e4161f3b1de59163a4f39ba59379f52a4 (diff) |
blk-throttle: Rename tg_may_dispatch() to tg_dispatch_time()
tg_may_dispatch() can directly indicate whether bio can be dispatched by
returning the time to wait, without the need for the redundant "wait"
parameter. Remove it and modify the function's return type accordingly.
Since we have determined by the return time whether bio can be dispatched,
rename tg_may_dispatch() to tg_dispatch_time().
Signed-off-by: Zizhi Wo <wozizhi@huawei.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Zizhi Wo <wozizhi@huaweicloud.com>
Link: https://lore.kernel.org/r/20250506020935.655574-2-wozizhi@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions