scsi: ufs: Serialize eh_work with system PM events and async scan
authorCan Guo <cang@codeaurora.org>
Wed, 2 Dec 2020 12:04:01 +0000 (04:04 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 7 Dec 2020 23:27:56 +0000 (18:27 -0500)
commit88a92d6ae4fe09b2b27781178c5c9432d27b1ffb
tree136700f5ba9cd61d5b479b015befd87d8621e543
parent5b44a07b6bb2c26905b16deb479e9ba4e5605e97
scsi: ufs: Serialize eh_work with system PM events and async scan

Serialize eh_work with system PM events and async scan to make sure eh_work
does not run in parallel with them.

Link: https://lore.kernel.org/r/1606910644-21185-2-git-send-email-cang@codeaurora.org
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Asutosh Das <asutoshd@codeaurora.org>
Reviewed-by: Hongwu Su <hongwus@codeaurora.org>
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshcd.h