Re: [PATCH V5] scsi: ufshcd: Fix device links when BOOT WLUN fails to probe

From: Martin K. Petersen
Date: Mon Aug 09 2021 - 23:21:18 EST



Adrian,

> Managed device links are deleted by device_del(). However it is
> possible to add a device link to a consumer before device_add(), and
> then discovering an error prevents the device from being used. In that
> case normally references to the device would be dropped and the device
> would be deleted. However the device link holds a reference to the
> device, so the device link and device remain indefinitely (unless the
> supplier is deleted).

Applied to 5.15/scsi-staging, thanks!

--
Martin K. Petersen Oracle Linux Engineering