Message ID | cover.1619223249.git.asutoshd@codeaurora.org (mailing list archive) |
---|---|
Headers | show |
Series | Enable power management for ufs wlun | expand |
Asutosh,
> This patch attempts to fix a deadlock in ufs while sending SSU.
Applied to 5.14/scsi-staging, thanks!
> Asutosh, In several places there is now a reference: "Also check the description of __ufshcd_wl_suspend()" But no such description is to found. Might want to add it in a supplementary patch? Thanks, Avri > > > This patch attempts to fix a deadlock in ufs while sending SSU. > > Applied to 5.14/scsi-staging, thanks! > > -- > Martin K. Petersen Oracle Linux Engineering
On Fri, 23 Apr 2021 17:20:15 -0700, Asutosh Das wrote: > This patch attempts to fix a deadlock in ufs while sending SSU. > Recently, blk_queue_enter() added a check to not process requests if the > queue is suspended. That leads to a resume of the associated device which > is suspended. In ufs, that device is ufs device wlun and it's parent is > ufs_hba. This resume tries to resume ufs device wlun which in turn tries > to resume ufs_hba, which is already in the process of suspending, thus > causing a deadlock. > > [...] Applied to 5.14/scsi-queue, thanks! [1/2] scsi: ufs: Enable power management for wlun https://git.kernel.org/mkp/scsi/c/b294ff3e3449 [2/2] ufs: sysfs: Resume the proper scsi device https://git.kernel.org/mkp/scsi/c/aef80fd1da32