Spdk/test
Seth Howell 3911922005 nvme: remove redundant transport_qp_is_failed checks
The qpair state transport_qpair_is_failed is actually equivalent to
NVME_QPAIR_IS_CONNECTED in the qpair state machine.

There are a couple of places where we check against
transport_qp_is_failed and then immediately check to see if we are in
the connected state. If we are failed, or we are not in the connected
state we return the same value to the calling function.

Since the checks for transport_qpair_is_failed are not necessary, they
can be removed. As a result, there is no need to keep track of it and it
can be removed from the qpair structure.

Change-Id: I4aef5d20eb267bfd6118e5d1d088df05574d9ffd
Signed-off-by: Seth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/475802
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2019-12-09 13:55:41 +00:00
..
app app: Add cli options to print SPDK version 2019-11-15 18:25:31 +00:00
bdev test/qos: use two bdevs for the QoS testing 2019-12-04 15:17:53 +00:00
blobfs test: Shellcheck - correct rule: Consider using { cmd1; cmd2; } 2019-11-22 13:51:15 +00:00
blobstore test: Shellcheck - correct rule: Consider using { cmd1; cmd2; } 2019-11-22 13:51:15 +00:00
common Change fio version 2019-12-06 14:50:59 +00:00
compress test/compress: Wait for bdevs to be created 2019-10-09 14:39:26 +00:00
config_converter rpc: Rename construct_vhost_blk_controller to vhost_create_blk_controller 2019-10-10 16:19:56 +00:00
cpp_headers queue_extras: use SPDK_CONTAINEROF 2019-10-07 15:06:01 +00:00
env test/env: don't link env libraries for memory unit tests 2019-12-04 15:29:57 +00:00
event notify: add notification library 2019-03-29 21:15:14 +00:00
ftl test/ftl: Fix bug with assiciative array 2019-12-02 11:01:13 +00:00
fuzz test: Shellcheck - correct rule: Double quote array 2019-11-27 07:08:57 +00:00
ioat test: remove duplicated set -ex from tests 2019-06-19 03:54:58 +00:00
iscsi_tgt test: Shellcheck - apply rule SC2155 2019-11-12 18:14:59 +00:00
json_config test: Shellcheck - correct rule: Expanding an array 2019-11-27 07:08:57 +00:00
lvol test/lvol: fix shellcheck failures on master. 2019-12-06 20:10:57 +00:00
make test: Shellcheck - correct rule: Double quote array 2019-11-27 07:08:57 +00:00
nvme nvme: replace cdw11 with specific union strucutre 2019-12-06 14:43:41 +00:00
nvmf test/nvmf: call nvmftestinit before checking IP. 2019-12-05 12:37:23 +00:00
ocf test: Shellcheck - correct rule: Double quote array 2019-11-27 07:08:57 +00:00
openstack test/openstack: Add possibility to reinstall devstack on required branch 2019-11-07 13:22:50 +00:00
pmem test: Shellcheck - apply rule SC2155 2019-11-12 18:14:59 +00:00
rpc_client RPC: properly handle the semaphore in error case 2019-12-05 12:22:45 +00:00
spdkcli test/rbd: Fix some issues in rbd.sh. 2019-10-24 17:12:32 +00:00
unit nvme: remove redundant transport_qp_is_failed checks 2019-12-09 13:55:41 +00:00
vhost test/vhost: remove unused test options from manual.sh 2019-12-06 17:27:25 +00:00
vmd test/vmd: return zero after sucessful test run 2019-10-15 16:37:40 +00:00
Makefile jsonrpc-client: add new C client library 2018-10-11 20:07:44 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00