]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: retrigger ANA log update if group descriptor isn't found
authorHannes Reinecke <hare@suse.de>
Sat, 5 Dec 2020 15:29:01 +0000 (16:29 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 6 Apr 2021 06:34:38 +0000 (08:34 +0200)
commit953937b4d0c7cd8766f4224d1da72932e1cb6105
tree5fb0f27d030e4cf6616214a67e1495eb1e8ec84c
parent97175682ee9d88a61076cc1fd9218efa97f843cb
nvme: retrigger ANA log update if group descriptor isn't found

If ANA is enabled but no ANA group descriptor is found when creating
a new namespace the ANA log is most likely out of date, so trigger
a re-read. The namespace will be tagged with the NS_ANA_PENDING flag
to exclude it from path selection until the ANA log has been re-read.

Fixes: edb14deef2ac ("nvme: implement multipath access to nvme subsystems")
Reported-by: Martin George <marting@netapp.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/multipath.c