]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit97a6b7406132095acbce84e81cb392d2673edae8
treecf770175ac62bb3dc87a57d8e061d9e13cb1c268
parentcca4f12a6f337657f53d8b3b5236efdb5c4d040e
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