3deaf00580
When we ran out of child_iov space, ensure the iovs to be aligned with block size. However the calculation was wrong. (to_next_boundary_bytes % blocklen) meant not to_last_block but to_next_block. So calculate to_last_block_size by reducing to_last_block_size from blocklen. The data was collected when the issue occured. So add unit test by using the data. Fixes #979 Reported-by: Geoffrey McRae <geoff@hostfission.com> Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I62a50bada450288ea7c60aec0e557c2a53cd8916 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/470806 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> |
||
---|---|---|
.. | ||
bdev_raid.c | ||
bdev.c | ||
compress.c | ||
crypto.c | ||
gpt | ||
mt | ||
part.c | ||
pmem | ||
scsi_nvme.c | ||
vbdev_lvol.c | ||
Makefile |