aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorYu Kuai <[email protected]>2022-08-29 10:22:38 +0800
committerJens Axboe <[email protected]>2022-09-12 00:19:48 -0600
commit8d6bbaada2e0a65f9012ac4c2506460160e7237a (patch)
tree38f8337cf068641d2680da5e44e522b68b0f3434 /tools/perf/scripts/python/bin/export-to-postgresql-report
parent320fb0f91e55ba248d4bad106b408e59099cfa89 (diff)
blk-throttle: prevent overflow while calculating wait time
There is a problem found by code review in tg_with_in_bps_limit() that 'bps_limit * jiffy_elapsed_rnd' might overflow. Fix the problem by calling mul_u64_u64_div_u64() instead. Signed-off-by: Yu Kuai <[email protected]> Acked-by: Tejun Heo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions