nvme/mpath: fix missed namespaces in ana state update
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | nvme/multipath: fix failure to update ns ana statedrivers/ | +5 | 0 replies | |
| 2/3 | nvme/multipath: cosmetic: keep ns nsid locallydrivers/ | +6 | 0 replies | |
| 3/3 | nvme/multipath: fix stale ana state for namespaces just added by scan workdrivers/ | +6 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] nvme/mpath: fix missed namespaces in ana state update
Fixed two issues in nvme_update_ana_state() that caused ana_work to miss existing namespaces and consequently a failure to update the namespace ANA state based on the ANA log page.
1) A plain bug: we skipped an nsid in desc->nsids in a certain combination of nsids present and nsids reports in the ANA log, and failed to match this nsid to an existing namespace.
2) Unhandled situation when scan_work appended new namespaces to ctrl->namespaces and did not sort the list yet.
In such transient state ana_work would fail to match nsids to those new namespaces.
Both issues potentially caused some namespaces to get stuck in an incorrect ANA state, e.g. to never become live.
Anton Eidelman (3):
nvme/multipath: fix failure to update ns ana state nvme/multipath: cosmetic: keep ns nsid locally nvme/multipath: fix stale ana state for namespaces just added by scan
work
drivers/nvme/host/multipath.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-)
Signature · 31 lines
2.25.1 -- *Lightbits Labs** *Lead the cloud-native data center transformation by delivering *scalable *and *efficient *software defined storage that is *easy *to consume. *This message is sent in confidence for the addressee only. It may contain legally privileged information. The contents are not to be disclosed to anyone other than the addressee. Unauthorized recipients are requested to preserve this confidentiality, advise the sender immediately of any error in transmission and delete the email from their systems.* _______________________________________________ Linux-nvme mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-nvme