]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: Remove an unpaired ufshcd_scsi_unblock_requests() in err_handler()
authorCan Guo <cang@codeaurora.org>
Wed, 19 Aug 2020 01:02:29 +0000 (18:02 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 21 Aug 2020 01:56:25 +0000 (21:56 -0400)
commit13a0c1cdce4ca6e4e41e3213c5c7932698cda22f
tree1d9adc00beb4938c923e3a351db59fd190e377f8
parenta25e07c060162cccae4daac02e10a23548a225a1
scsi: ufs: Remove an unpaired ufshcd_scsi_unblock_requests() in err_handler()

Commit d1f044292284 ("scsi: ufs: Fix a race condition between error handler
and runtime PM ops") moves the ufshcd_scsi_block_requests() inside
err_handler() but forgets to remove the ufshcd_scsi_unblock_requests() in
the early return path. Correct the mistake.

Link: https://lore.kernel.org/r/1597798958-24322-1-git-send-email-cang@codeaurora.org
Fixes: d1f044292284 ("scsi: ufs: Fix a race condition between error handler and runtime PM ops")
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