Spdk/test
Shuhei Matsumoto fa2c6446fa bdev: Calculate max_copy once at bdev registration for fallback case
Calculation of max copy size for fallback case includes division and is
costly. The result is constant for each bdev. Hence we can calculate it
only once and store it into bdev->max_copy at bdev registration.
Calculation of max copy size for fallback case is almost same as
calculation of max write zero size for fallback case. To reuse the
calculation, the helper function is named as bdev_get_max_write() and
has a num_bytes parameter.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: Iac83a1f16b908d8b36b51d9c51782de40313b6c8
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17909
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
2023-05-09 17:58:11 +08:00
..
accel examples/accel/perf: add support for xor 2023-02-21 08:33:18 +00:00
app fuzz/llvm: provide a prefix to use when saving artifacts 2023-05-09 17:58:11 +08:00
bdev bdev_gpt: use unique partition GUID as bdev UUID 2023-05-09 17:58:11 +08:00
blobfs add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
blobstore add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
common pkgdep/git: Bump QEMU to latest 8.0.0 release 2023-05-09 17:58:11 +08:00
compress bdev/compress: Port to use accel_fw instead of compressdev 2023-01-20 10:26:21 +00:00
cpp_headers update Intel copyright notices 2022-11-10 08:28:53 +00:00
dd add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
dma test/dma: call spdk_thread_exit() 2022-11-23 08:22:04 +00:00
dpdk_memory_utility add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
env add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
event autotest: unify style for test/ and ./test/ 2023-02-14 09:07:09 +00:00
external_code tests: Run make clean only when SPDK was configured 2023-02-02 09:05:56 +00:00
ftl test/ftl: add cases line to cover RPC bdev_ftl_unload 2023-01-17 20:32:58 +00:00
fuzz fuzz/llvm: move coverage data to llvm/coverage 2023-05-09 17:58:11 +08:00
interrupt test: wait_for_examine and delay in reap_unregistered_poller.sh 2023-05-09 17:58:11 +08:00
ioat add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
iscsi_tgt bdev/pmem: Removing bdev pmem - updated tests 2023-03-09 09:21:23 +00:00
json_config accel: add accel_set_options 2023-05-09 17:58:11 +08:00
lvol vbdev_lvol: allow degraded lvols to be deleted 2023-05-09 17:58:11 +08:00
make test/check_so_deps: Adjust printout when $SPDK_ABI_DIR is not set 2023-05-09 17:58:11 +08:00
nvme test/nvme: Lock FDP test to FDP-capable nvme only 2023-05-09 17:58:11 +08:00
nvmf test/nvmf: fully re-enable host/timeout.sh 2023-05-09 17:58:11 +08:00
ocf bdev/ocf: Update OCF to 22.6.1 2023-04-06 14:40:39 +00:00
openstack add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
packaging test/packaging: Export LD_LIBRARY_PATH, PKG_CONFIG_PATH setup 2023-05-09 17:58:11 +08:00
rpc lib/trace: add trace_get_info RPC 2022-12-05 09:50:38 +00:00
rpc_client add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
rpc_plugins autotest: Use rpc_cmd() for rpc plugin-based tests 2021-04-02 08:22:42 +00:00
scheduler test/scheduler: Merge cppc_cpufreq into acpi-cpufreq check 2023-03-22 07:08:22 +00:00
setup tests: Skip block devices marked as hidden 2023-05-09 17:58:11 +08:00
sma test/sma: limit number of vhost-blk devices to 2 2023-03-13 21:02:27 +00:00
spdkcli test/spdkcli: Wait until spdkcli_clear_config settled 2023-05-09 17:58:11 +08:00
thread thread: test SPDK spinlocks in an application 2022-12-06 21:20:17 +00:00
ublk test/ublk: add parameter for num devices 2023-01-25 10:52:36 +00:00
unit bdev: Calculate max_copy once at bdev registration for fallback case 2023-05-09 17:58:11 +08:00
vfio_user test/vfio-user: reduce spdk_tgt memory allocation 2023-05-09 17:58:11 +08:00
vhost test/vhost: Create wrapper around wipefs 2023-05-09 17:58:11 +08:00
vmd add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
Makefile test/lvol: test esnap clones with real bdevs 2023-05-09 17:58:11 +08:00
spdk_cunit.h update Intel copyright notices 2022-11-10 08:28:53 +00:00