+49
−41
Loading
When a request is submitted, it may have incorrect iov alignment that doesn't fit PRP requirements. In the current version an internal function fails such a request and returns a NULL pointer. This is mapped to -ENOMEM error which is returned to generic bdev layer where such a request is queued in a "nomem_io" queue and later can be resubmitted. That is incorrect and such a request must be completed immediately. To fail the request, we need to differentiate between -ENOMEM and other cases, so we pass a pointer to a result to local nvme functions Change-Id: I7120d49114d801497a71fca5a23b172732d088de Signed-off-by:Alexey Marchuk <alexeymar@mellanox.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7036 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Paul Luse <paul.e.luse@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>