nvme-rdma: use NVME_CTRL_CONNECTING state to mark init process
authorMax Gurtovoy <maxg@mellanox.com>
Wed, 31 Jan 2018 16:31:25 +0000 (18:31 +0200)
committerSagi Grimberg <sagi@grimberg.me>
Thu, 8 Feb 2018 16:35:53 +0000 (18:35 +0200)
commitb754a32c66772e6510acd92237aadd4cf227ae39
treecf770175ac62bb3dc87a57d8e061d9e13cb1c268
parentad6a0a52e6de3d1161b7999c7903db906ba4cf79
nvme-rdma: use NVME_CTRL_CONNECTING state to mark init process

In order to avoid concurrent error recovery during initialization
process (allowed by the NVME_CTRL_NEW --> NVME_CTRL_RESETTING transition)
we must mark the ctrl as CONNECTING before initial connection
establisment.

Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/core.c
drivers/nvme/host/rdma.c