[PATCH] nvme-multipath: fix double initialization of ANA state

Martin Wilck mwilck at suse.com
Wed May 12 07:53:31 PDT 2021


On Thu, 2021-05-06 at 15:48 +0200, Christoph Hellwig wrote:
> nvme_init_identify and thus nvme_mpath_init can be called multiple
> times and thus must not overwrite potentially initialized or in-use
> fields.  Split out a helper for the basic initialization when the
> controller is initialized and make sure the init_identify path does
> not blindly change in-use data structures.
> 
> Fixes: 0d0b660f214d ("nvme: add ANA support")
> Reported-by: Martin Wilck <mwilck at suse.com>
> Signed-off-by: Christoph Hellwig <hch at lst.de>

Thank you. I'll prepare another test kernel for our partner.

Martin





More information about the Linux-nvme mailing list