Re: [PATCH v2] scsi: virtio_scsi: unplug LUNs when events missed

From: Martin K. Petersen
Date: Tue Sep 10 2019 - 22:15:20 EST



Matt,

> The event handler calls scsi_scan_host() when events are missed, which
> will hotplug new LUNs. However, this function won't remove any
> unplugged LUNs. The result is that hotunplug doesn't work properly
> when the number of unplugged LUNs exceeds the event queue size
> (currently 8).
>
> Scan existing LUNs when events are missed to check if they are still
> present. If not, remove them.

Applied to 5.4/scsi-queue, thanks!

--
Martin K. Petersen Oracle Linux Engineering