[PATCH v2 0/1] nvme/mpath: fix hang when disk goes live over reconnect
Anton Eidelman
anton.eidelman at gmail.com
Tue Mar 22 20:55:50 PDT 2022
Revising the original v1 patch submitted on Sep 18, 2021,
which deferred nvme_read_ana_log() until nvme_start_ctrl()
and raised concerns since the former might fail,
while the latter does not currently return an error.
I did not see appropriate to introduce error handling
in the nvme_start_ctrl() call-sites.
Instead, this patch keeps the nvme_read_ana_log() in its original
place inside nvme_mpath_init_identify(),
but defers updating of the existing ns path state
until the ctrl IO queues are enabled in nvme_start_ctrl().
This way the handling of failures to retrieve the ANA log remains intact,
while the mpath update is deferred until it's safe to do.
Anton Eidelman (1):
nvme/mpath: fix hang when disk goes live over reconnect
drivers/nvme/host/core.c | 1 +
drivers/nvme/host/multipath.c | 12 +++++++++++-
drivers/nvme/host/nvme.h | 4 ++++
3 files changed, 16 insertions(+), 1 deletion(-)
--
2.25.1
More information about the Linux-nvme
mailing list