scsi: cxlflash: Fence EEH during probe
An EEH during probe can lead to a crash as the recovery thread races with the probe thread. To avoid this issue, introduce new states to fence out EEH recovery until probe has completed. Also ensure the reset wait queue is flushed during device removal to avoid orphaned threads. Signed-off-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com> Signed-off-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:

committed by
Martin K. Petersen

parent
1cd7fabc82
commit
323e33428e
@@ -90,6 +90,8 @@ enum cxlflash_init_state {
|
||||
};
|
||||
|
||||
enum cxlflash_state {
|
||||
STATE_PROBING, /* Initial state during probe */
|
||||
STATE_PROBED, /* Temporary state, probe completed but EEH occurred */
|
||||
STATE_NORMAL, /* Normal running state, everything good */
|
||||
STATE_RESET, /* Reset state, trying to reset/recover */
|
||||
STATE_FAILTERM /* Failed/terminating state, error out users/threads */
|
||||
|
Reference in New Issue
Block a user