a092fac4a2
mapping length is initialized with 0 and spdk_vtophys() returns min(*mapping_length, cur_size) or 0. So length -= mapping_length has no effect and req will be failed when nseg reaches NVME_MAX_SGL_DESCRIPTORS Initialize mapping_length = request length Change-Id: I9082866b7f8055d99fa6930a78335b3b0fdf9b2b Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com> Signed-off-by: Sasha Kotchubievsky <sashakot@mellanox.com> Signed-off-by: Evgeniy Kochetov <evgeniik@mellanox.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/477575 Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: SPDK CI Jenkins <sys_sgci@intel.com>