summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorKamlesh Gurudasani <kamlesh@ti.com>2024-08-22 02:32:52 +0530
committerHerbert Xu <herbert@gondor.apana.org.au>2024-08-30 18:23:43 +0800
commit24cc57d8faaa4060fd58adf810b858fcfb71a02f (patch)
tree1a25ad34c1713e88c6c750518d48636194227c24 /tools/perf/scripts/python/export-to-postgresql.py
parentc7de6ee3d312ae88f6f9a04afa211b52da613852 (diff)
padata: Honor the caller's alignment in case of chunk_size 0
In the case where we are forcing the ps.chunk_size to be at least 1, we are ignoring the caller's alignment. Move the forcing of ps.chunk_size to be at least 1 before rounding it up to caller's alignment, so that caller's alignment is honored. While at it, use max() to force the ps.chunk_size to be at least 1 to improve readability. Fixes: 6d45e1c948a8 ("padata: Fix possible divide-by-0 panic in padata_mt_helper()") Signed-off-by: Kamlesh Gurudasani <kamlesh@ti.com> Acked-by:  Waiman Long <longman@redhat.com> Acked-by: Daniel Jordan <daniel.m.jordan@oracle.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions