scsi: virtio_scsi: Rescan the entire target on transport reset when LUN is 0
mainline inclusion from mainline-5.10 commit beef6fd0 category: bugfix bugzilla: NA CVE: NA ------------------------------------------------- VirtIO 1.0 spec says: The removed and rescan events ... when sent for LUN 0, they MAY apply to the entire target so the driver can ask the initiator to rescan the target to detect this. This change introduces the behaviour described above by scanning the entire SCSI target when LUN is set to 0. This is both a functional and a performance fix. It aligns the driver with the spec and allows control planes to hotplug targets with large numbers of LUNs without having to request a RESCAN for each one of them. Link: https://lore.kernel.org/r/CY4PR02MB33354370E0A81E75DD9DFE74FB520@CY4PR02MB3335.namprd02.prod.outlook.comSuggested-by: NFelipe Franciosi <felipe@nutanix.com> Acked-by: NPaolo Bonzini <pbonzini@redhat.com> Signed-off-by: NMatej Genci <matej.genci@nutanix.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com> Signed-off-by: NWenchao Hao <haowenchao@huawei.com> Reviewed-by: NJason Yan <yanaijie@huawei.com> Reviewed-by: NMiaohe Lin <linmiaohe@huawei.com> Reviewed-by: NMiaohe Lin <linmiaohe@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录