Spdk/lib/bdev
Shuhei Matsumoto 319d1cbb4e bdev: Store bdev_io data into local variables to update I/O statistics
Hold not only io_stat pointer but also num_blocks and blocklen in local
variables.

This will shorten and simplify bdev_io_update_io_stat(), and improve
readability and changeability.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: I527b72538a169a1faafd32863ff539306a8763a9
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15732
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
2022-12-08 12:54:23 +00:00
..
bdev_internal.h bdev: Change name and parameter order of function to dump I/O statistics 2022-12-08 12:54:23 +00:00
bdev_rpc.c bdev: Change name and parameter order of function to dump I/O statistics 2022-12-08 12:54:23 +00:00
bdev_zone.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
bdev.c bdev: Store bdev_io data into local variables to update I/O statistics 2022-12-08 12:54:23 +00:00
Makefile update Intel copyright notices 2022-11-10 08:28:53 +00:00
part.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
scsi_nvme.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
spdk_bdev.map bdev: support to get histogram per channel 2022-11-29 08:28:57 +00:00
vtune.c update Intel copyright notices 2022-11-10 08:28:53 +00:00