+2
−8
Loading
Currently the splitting code for unmap and write_same is a bit complicated, since it needs to handle case where we get a 0-length unmap descriptor and spdk_bdev_unmap_blocks() didn't handle 0-length calls. But spdk_bdev_unmap_blocks() has been updated now to handle 0-length calls, so we can eliminate this extra complexity. This also alleviates a small regression identified when this splitting code path was updated. Fixes issue #3249. Fixes b735c429 ("scsi: Improve child IO split mechanism"). Signed-off-by:Jim Harris <jim.harris@samsung.com> Change-Id: I93cdac1c449a17fcc22e9909beb0feafe2b08b54 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21773 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Community-CI: Mellanox Build Bot Reviewed-by:
Ben Walker <ben@nvidia.com>