[PATCH v1 0/2]: nvme-fc: fix race with connectivity loss with nvme_fc_create_association
Daniel Wagner
dwagner at suse.de
Tue Jun 11 12:06:45 PDT 2024
We got a bug report that a controller was stuck in the connected state after an
association dropped. It turns out that nvme_fc_create_association can succeed
even though some operation do fail. This is on purpose to handle other corner
cases, thus we can't really make nvme_fc_create_assocication bullet proof.
Given this, I think the second best option is to ensure that we always schedule
a reset whenever a connectivity loss is observed in CONNECTING state. This is
not perfect (possible back to back reset) but at least it is correct, which wins
in my books.
Daniel Wagner (2):
nvme-fc: go straight to connecting state when initializing
nvme-fc: fix race with connectivity loss with
nvme_fc_create_association
drivers/nvme/host/fc.c | 27 ++++++++++++++++++++++-----
1 file changed, 22 insertions(+), 5 deletions(-)
--
2.45.2
More information about the Linux-nvme
mailing list