Re: [PATH v2] scsi: scsi_dh_rdac: Avoid crash during rdac_bus_attach

From: Bart Van Assche
Date: Fri Jul 23 2021 - 00:04:32 EST


On 1/12/21 10:31 PM, Ye Bin wrote:
> sdev->handler_data = NULL;
> + synchronize_rcu();
> kfree(h);

What is the purpose of the new synchronize_rcu() call? If its purpose is
to wait until *h is no longer in use, please use kfree_rcu() instead.

Thanks,

Bart.