Spdk/lib/nvme
Changpeng Liu 4582e9fb4a nvme: add additional check to avoid being divided by zero error
When a Namespace was removed all the field will be zeroed, which
may lead to being divied by zero error when IO is running, especially
with perf tool.  The perf tool doesn't add hogplug support, so
we add the additional check here to avoid such issue.

Fix issues #728 and #629.

Change-Id: I0e387c8c1bd4f3d40130377e2e0f5143f43be6a3
Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/451762
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2019-04-24 21:46:15 +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: add additional check to avoid being divided by zero error 2019-04-24 21:46:15 +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 lib/nvme: fix big endian conversion for logical_block_size 2019-04-24 15:06:51 +00:00
nvme_pcie.c nvme: Modify the memory barrier mode to improve performance 2019-04-23 14:32:44 +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_rdma: Allow the SGL to be larger than the req_length 2019-04-19 17:29:45 +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