+22
−9
+6
−1
Loading
Add new ctrlr state `disconnected` When the controller disconnect process completes, admin qpair is disconnected and free_io_qids is released. That means that IO qpairs can not be created. Code to create Io qpairs checks that the ctrlr must be in READY state, so it is needed to update the ctrlr state once disconnect completes to disallow creating IO qpairs Since change of the state and qpair creation migth be executed on different threads, lock controller's mutex in spdk_nvme_ctrlr_alloc_io_qpair Signed-off-by:Alexey Marchuk <alexeymar@nvidia.com> Change-Id: Ib882a5da7c0706f0a271628aa4bd11e65ff21ddf Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18784 Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com>