
10 Oct
2021
10 Oct
'21
4:14 p.m.
Hi Takahiro,
On Thu, 30 Sept 2021 at 23:05, AKASHI Takahiro takahiro.akashi@linaro.org wrote:
Adding the callback function, efi_disk_delete(), in block devices's pre_remove hook will allows for automatically deleting efi_disk objects per block device.
This will eliminate any improper efi_disk objects which hold a link to non-existing udevice structures when associated block devices are physically un-plugged or udevices are once removed (and re-created) by executing commands like "scsi rescan."
Signed-off-by: AKASHI Takahiro takahiro.akashi@linaro.org
drivers/block/blk-uclass.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
Should use event mechanism as mentioned in previous patch.
Regards, Simon