Re: [PATCH 1/2] scsi: libsas: only clear phy->in_shutdown after shutdown event done

From: Martin K. Petersen
Date: Wed May 29 2019 - 22:14:16 EST



Jason,

> When the event queue is full of phy up and down events and reached the
> threshold, we will queue a shutdown-event, and set phy->in_shutdown so
> that we will not queue a shutdown-event again. But before the
> shutdown-event can be executed, every phy-down event will clear
> phy->in_shutdown and a new shutdown-event will be queued. The queue will
> be full of these shutdown-events.
>
> Fix this by only clear phy->in_shutdown in sas_phye_shutdown(), that is
> after the first shutdown-event has been executed.

Applied 1+2 to 5.2/scsi-fixes. Thanks!

--
Martin K. Petersen Oracle Linux Engineering