Alexey Marchuk c7bb68aa3e nvme: Handle errors returned by submit function
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>
2021-04-05 22:58:57 +00:00
..
2021-02-05 14:43:47 +00:00
2021-02-05 14:43:47 +00:00
2021-02-05 14:43:47 +00:00
2021-02-05 14:43:47 +00:00
2021-02-05 14:43:47 +00:00
2021-02-05 14:43:47 +00:00
2021-02-05 14:43:47 +00:00
2021-02-05 14:43:47 +00:00
2021-04-01 11:16:56 +00:00
2021-03-01 10:17:13 +00:00
2021-02-05 14:43:47 +00:00
2021-02-05 14:43:47 +00:00
2021-02-10 08:44:01 +00:00
2021-02-05 14:43:47 +00:00