[PATCH 1/3] nvme: rename NVME_CTRL_RECONNECTING state to NVME_CTRL_CONNECTING
Max Gurtovoy
maxg at mellanox.com
Tue Feb 13 02:19:53 PST 2018
On 2/8/2018 6:19 PM, Sagi Grimberg wrote:
>
>
> On 02/08/2018 05:28 PM, Sagi Grimberg wrote:
>>
>>> diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c
>>> index 6c2fdfa..219c6a0 100644
>>> --- a/drivers/nvme/host/rdma.c
>>> +++ b/drivers/nvme/host/rdma.c
>>> @@ -887,7 +887,7 @@ static void nvme_rdma_free_ctrl(struct nvme_ctrl
>>> *nctrl)
>>> static void nvme_rdma_reconnect_or_remove(struct nvme_rdma_ctrl *ctrl)
>>> {
>>> /* If we are resetting/deleting then do nothing */
>>> - if (ctrl->ctrl.state != NVME_CTRL_RECONNECTING) {
>>> + if (ctrl->ctrl.state != NVME_CTRL_CONNECTING) {
>>> WARN_ON_ONCE(ctrl->ctrl.state == NVME_CTRL_NEW ||
>>> ctrl->ctrl.state == NVME_CTRL_LIVE);
>>> return;
>>> @@ -978,7 +978,7 @@ static void nvme_rdma_error_recovery_work(struct
>>> work_struct *work)
>>> static void nvme_rdma_error_recovery(struct nvme_rdma_ctrl *ctrl)
>>> {
>>> - if (!nvme_change_ctrl_state(&ctrl->ctrl, NVME_CTRL_RECONNECTING))
>>> + if (!nvme_change_ctrl_state(&ctrl->ctrl, NVME_CTRL_CONNECTING))
>>> return;
>>> queue_work(nvme_wq, &ctrl->err_work);
>>>
>> What is this based on? It does not apply on nvme-4.16.
>
> Max, I fixed it up locally in nvme-4.16-rc, please verify that its
> correct and passes your local tests.
Sagi,
I guess you applied it after rebasing, I've mentioned that there was
still 1 commit missing in nvme-4.16 (your reset fix).
I'll run tests on nvme-4.16-rc and update soon.
-Max.
More information about the Linux-nvme
mailing list