Re: [PATCH v1] scsi: ufs: Fix race between shutdown and runtime resume flow

From: Martin K. Petersen
Date: Thu Nov 19 2020 - 22:31:06 EST


On Thu, 19 Nov 2020 14:29:16 +0800, Stanley Chu wrote:

> If UFS host device is in runtime-suspended state while
> UFS shutdown callback is invoked, UFS device shall be
> resumed for register accesses. Currently only UFS local
> runtime resume function will be invoked to wake up the host.
> This is not enough because if someone triggers runtime
> resume from block layer, then race may happen between
> shutdown and runtime resume flow, and finally lead to
> unlocked register access.
>
> [...]

Applied to 5.10/scsi-fixes, thanks!

[1/1] scsi: ufs: Fix race between shutdown and runtime resume flow
https://git.kernel.org/mkp/scsi/c/e92643db5148

--
Martin K. Petersen Oracle Linux Engineering