[PATCH] nvme-multipath: zeroing ana_log_size as well after free ana_log_buf

Christoph Hellwig hch at lst.de
Tue Dec 7 09:18:29 PST 2021


On Mon, Dec 06, 2021 at 05:43:10PM +0800, Hou Tao wrote:
> Hi,
> 
> On 12/6/2021 3:53 PM, Christoph Hellwig wrote:
> >>  	if (ana_log_size > ctrl->ana_log_size) {
> >>  		nvme_mpath_stop(ctrl);
> >> -		kfree(ctrl->ana_log_buf);
> >> +		nvme_mpath_uninit(ctrl);
> > This hunk looks unrelated.
> It will be related if the value of ana_log_size is reduced again, so you mean
> the reduction is impossible ?

Ok, I see the intent now and will apply it with an updated changelog
to make that more clear.



More information about the Linux-nvme mailing list