init: do not create lat logs when not needed
authorDamien Le Moal <damien.lemoal@wdc.com>
Mon, 17 Jan 2022 02:11:27 +0000 (11:11 +0900)
committerJens Axboe <axboe@kernel.dk>
Mon, 17 Jan 2022 14:21:58 +0000 (07:21 -0700)
commitef37053efdfb8c3b8b6deef43c0969753e6adb44
tree360c3926d2b8bbc9fd9e1186eba5d9941ba4ec38
parent016869bebe9bef7cae5a7f9dc0762162b0612226
init: do not create lat logs when not needed

When any of the options disable_lat, disable_slat and disable_clat are
used, there is no need to create the lat log associated with the
disabled latency. In addition, when write_lat_log is also specified,
this change avoids the creation of empty latency log files.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Niklas Cassel <niklas.cassel@wdc.com>
Link: https://lore.kernel.org/r/20220117021127.9259-1-damien.lemoal@wdc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
init.c