]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-multipath: set ana_log_size to 0 after free ana_log_buf
authorHou Tao <houtao1@huawei.com>
Fri, 3 Dec 2021 11:47:15 +0000 (19:47 +0800)
committerChristoph Hellwig <hch@lst.de>
Tue, 7 Dec 2021 17:19:28 +0000 (18:19 +0100)
commit4762b77fa3f3315ad2ceffd99b292211d9166420
tree8138f654c9479aea88d32de06424c5f45dcda9a7
parentc509325ccd6add7b4271473f6115077f3d99e184
nvme-multipath: set ana_log_size to 0 after free ana_log_buf

Set ana_log_size to 0 when ana_log_buf is freed to make sure
nvme_mpath_init_identify will do the right thing when retrying
after an earlier failure.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/multipath.c