+6
−2
Loading
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>