Spdk/lib/bdev
Konrad Sztyber 54a935a669 bdev: cache whether IO needs to be split
bdev_io_should_split() adds some non-zero overhead, so checking it
multiple times in an IO path is inefficient.  So, to avoid that, call
bdev_io_should_split() once during IO initialization and cache the
result in bdev_io.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I1da6514d409f8a4e4bbb14722dd53b2c88988cac
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17058
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
2023-03-13 21:02:27 +00:00
..
bdev_internal.h bdev: add public APIs for IO statictics processing 2023-01-19 01:57:11 +00:00
bdev_rpc.c bdev: implement claims v2 2023-02-09 11:20:34 +00:00
bdev_zone.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
bdev.c bdev: cache whether IO needs to be split 2023-03-13 21:02:27 +00:00
Makefile so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
part.c bdev: remove spdk_bdev_ext_io_opts from spdk_bdev_io 2023-02-16 10:09:35 +00:00
scsi_nvme.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
spdk_bdev.map bdev: implement claims v2 2023-02-09 11:20:34 +00:00
vtune.c update Intel copyright notices 2022-11-10 08:28:53 +00:00