Spdk/lib/nvme
Seth Howell b2e778b271 nvme_ns_cmd: fix bug in split_request_sgl
The while loop in this function was structured such that if the final
child request did not contain a full number of SGE elements, it would be
truncated. We need to not only check whether we have a full number of
SGEs, but also if the current child has consumed the end of the parent
request.

Change-Id: I7df6c224e9ab66033c92d2cf1af10452f5cdfd9b
Signed-off-by: Seth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/450684
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2019-04-19 17:29:45 +00:00
..
Makefile Opal: Add Opal library 2019-04-08 17:04:25 +00:00
nvme_ctrlr_cmd.c nvme: Cache the cb_fn and cb_arg in the tracker 2019-04-10 21:29:03 +00:00
nvme_ctrlr_ocssd_cmd.c ocssd: hold lock when calling nvme_ctrlr_submit_admin_request 2019-02-15 21:27:58 +00:00
nvme_ctrlr.c nvme: remove set_state after nvme_ctrlr_identify_id_desc_namespaces 2019-04-01 09:09:07 +00:00
nvme_fabric.c nvme: introduce probe context data structure and API 2019-02-15 03:14:20 +00:00
nvme_internal.h nvme: Cache the cb_fn and cb_arg in the tracker 2019-04-10 21:29:03 +00:00
nvme_ns_cmd.c nvme_ns_cmd: fix bug in split_request_sgl 2019-04-19 17:29:45 +00:00
nvme_ns_ocssd_cmd.c vtophys: add length parameter to the vtophys function 2019-01-09 08:24:59 +00:00
nvme_ns.c nvme: make identify NS id descriptors can be executed asynchronously 2018-10-15 17:57:56 +00:00
nvme_opal_internal.h opal: add response parsing functions 2019-04-17 17:34:27 +00:00
nvme_opal.c opal: add response parsing functions 2019-04-17 17:34:27 +00:00
nvme_pcie.c env/dpdk: register VFIO hotremove callback 2019-04-18 22:49:30 +00:00
nvme_qpair.c nvme: Cache the cb_fn and cb_arg in the tracker 2019-04-10 21:29:03 +00:00
nvme_quirks.c nvme: add SHST_COMPLETE quirk for VMWare emulated SSDs 2019-02-27 01:46:32 +00:00
nvme_rdma.c nvme: Cache the cb_fn and cb_arg in the tracker 2019-04-10 21:29:03 +00:00
nvme_tcp.c nvme: Cache the cb_fn and cb_arg in the tracker 2019-04-10 21:29:03 +00:00
nvme_transport.c nvme: introduce probe context data structure and API 2019-02-15 03:14:20 +00:00
nvme_uevent.c util: add spdk_strerror() wrapper with TLS support 2018-01-04 15:00:09 -05:00
nvme_uevent.h nvme: Add support of hotplug for vfio-attached devices. 2017-12-06 17:04:49 -05:00
nvme.c nvme: don't rely on phys_addr retrieved from spdk_malloc() 2019-03-20 01:06:09 +00:00