Fix --bandwidth-log segmentation fault when numjobs even multiple of 8
authorHorshack <horshack@live.com>
Fri, 3 Mar 2023 13:14:53 +0000 (08:14 -0500)
committerHorshack <horshack@live.com>
Fri, 3 Mar 2023 13:14:53 +0000 (08:14 -0500)
commit77a2306b43642fa6d776c53b74117592c468ea90
treeb952edcc5d827de262436bd234bac565385fa461
parent5a37211238f995657c50e5d0ea6e5e22ff3ca69e
Fix --bandwidth-log segmentation fault when numjobs even multiple of 8

Segmentation fault occurs when aggregate bandwidth logging is enabled
(--bandwidth-log) and numjobs is an even multiple of 8. Fault occurs
because logic is using the terminating value of struct thread_data *td
from the most recent for_each_td(). This bug was caught by the
refactoring of for_each_td().

Link: https://github.com/axboe/fio/issues/1534
Signed-off-by: Adam Horshack (horshack@live.com)
eta.c