Spdk/lib
Niklas Cassel d7345e08ae nvme: group NVME_CTRLR_STATE_WAIT_FOR_* states together
While I assume that the initial thought of having the
NVME_CTRLR_STATE_WAIT_FOR_* state directly after the state which it is
waiting for, was to make it clear for the reader in which order the
states will be executed.
However, it feels silly to have the same code copy pasted everywhere.

Someone who needs to add a new state will still need to edit
nvme_ctrlr_state_string() and enum nvme_ctrlr_state, which still defines
the NVME_CTRLR_STATE_WAIT_FOR_* state directly after the state which it
is waiting for.

In one way, moving the NVME_CTRLR_STATE_WAIT_FOR_* states to the end of
nvme_ctrlr_process_init(), when reading nvme_ctrlr_process_init(), it is
actually easier to see the ordering of the states which actually do
something of significance.

Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
Change-Id: Ia95ea5ac3c44a53179edbdc65cba45bec94e469f
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5115
Community-CI: Broadcom CI
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
2020-11-18 11:28:11 +00:00
..
accel lib/accel: change max batch size to match idxd batch max 2020-11-18 11:27:23 +00:00
bdev lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
blob lib/blob: extent_page shall never occupy md page 0 2020-10-16 08:15:16 +00:00
blobfs lib/blobfs: remove legacy config support 2020-10-20 02:42:16 +00:00
conf lib/conf: check pointer return value when use calloc 2020-11-11 01:02:31 +00:00
env_dpdk env_dpdk/pci: adapt to 20.11 EAL changes 2020-11-17 14:51:59 +00:00
env_ocf lib/thead: print error log when create mempool or ring failed 2020-11-05 09:41:06 +00:00
event lib/event: add assert check after call spdk_reactor_get 2020-11-17 08:25:31 +00:00
ftl lib/ftl: add assert check for ftl_wptr_from_band 2020-11-17 08:25:31 +00:00
idxd lib/idxd: small code cleanup 2020-10-22 22:43:28 +00:00
ioat log: remove internal log.h header 2020-10-15 08:23:39 +00:00
iscsi lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
json json: add spdk_json_free_object() 2020-10-19 10:02:10 +00:00
jsonrpc lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
log log: remove internal log.h header 2020-10-15 08:23:39 +00:00
lvol log: remove internal log.h header 2020-10-15 08:23:39 +00:00
nbd lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
net lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
notify log: remove internal log.h header 2020-10-15 08:23:39 +00:00
nvme nvme: group NVME_CTRLR_STATE_WAIT_FOR_* states together 2020-11-18 11:28:11 +00:00
nvmf nvmf: Allow nvmf_transport_qpair_fini to complete asynchronously. 2020-11-18 11:28:02 +00:00
rdma log: remove internal log.h header 2020-10-15 08:23:39 +00:00
reduce log: remove internal log.h header 2020-10-15 08:23:39 +00:00
rocksdb rocksdb/env_spdk: Fix unused warning. 2020-10-28 12:49:10 +00:00
rpc RPC: update the error message for current RPC state 2020-07-31 08:21:37 +00:00
scsi log: remove internal log.h header 2020-10-15 08:23:39 +00:00
sock lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
thread lib/thread: return NULL when id is invalid before search form tailq 2020-11-13 14:10:37 +00:00
trace lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
ut_mock mk/lib: add a check that major and minor version is set for libs. 2020-05-21 09:19:00 +00:00
util interrupt: new fd_group in lib/util 2020-10-23 16:23:48 +00:00
vhost lib/jsonrpc: Add a new API to send response for writing bool result. 2020-11-16 15:08:47 +00:00
virtio vhost: deprecate internal vhost library support 2020-10-20 02:42:16 +00:00
vmd log: remove internal log.h header 2020-10-15 08:23:39 +00:00
Makefile vhost: deprecate internal vhost library support 2020-10-20 02:42:16 +00:00