linux/drivers/scsi/hisi_sas
Xiaofei Tan d2fc401e47 scsi: hisi_sas: Fix the conflict between dev gone and host reset
There is a possible conflict when a device is removed and host reset occurs
concurrently.

The reason is that then the device is notified as gone, we try to clear the
ITCT, which is notified via an interrupt. The dev gone function pends on
this event with a completion, which is completed when the ITCT interrupt
occurs.

But host reset will disable all interrupts, the wait_for_completion() may
wait indefinitely.

This patch adds an semaphore to synchronise this two processes. The
semaphore is taken by the host reset as the basis of synchronising.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-06-19 22:02:25 -04:00
..
hisi_sas_main.c scsi: hisi_sas: Fix the conflict between dev gone and host reset 2018-06-19 22:02:25 -04:00
hisi_sas_v1_hw.c scsi: hisi_sas: Mark PHY as in reset for nexus reset 2018-05-28 22:40:32 -04:00
hisi_sas_v2_hw.c scsi: hisi_sas: Mark PHY as in reset for nexus reset 2018-05-28 22:40:32 -04:00
hisi_sas_v3_hw.c scsi: hisi_sas: Only process broadcast change in phy_bcast_v3_hw() 2018-06-19 22:02:25 -04:00
hisi_sas.h scsi: hisi_sas: Fix the conflict between dev gone and host reset 2018-06-19 22:02:25 -04:00
Kconfig scsi: hisi_sas: Remove depends on HAS_DMA in case of platform dependency 2018-03-21 18:34:21 -04:00
Makefile scsi: hisi_sas: add skeleton v3 hw driver 2017-06-19 21:31:25 -04:00