Merge "scsi: ufs: Fix imbalanced scsi_block_reqs_cnt caused by ufshcd_hold()"

This commit is contained in:
qctecmdr 2020-07-10 21:39:49 -07:00 • committed by Gerrit - the friendly Code Review server
commit ca2935a074

View file

@ -1661,12 +1661,12 @@ start:
*/
/* fallthrough */
case CLKS_OFF:
ufshcd_scsi_block_requests(hba);
hba->clk_gating.state = REQ_CLKS_ON;
trace_ufshcd_clk_gating(dev_name(hba->dev),
hba->clk_gating.state);
queue_work(hba->clk_gating.clk_gating_workq,
&hba->clk_gating.ungate_work);
if (queue_work(hba->clk_gating.clk_gating_workq,
&hba->clk_gating.ungate_work))
ufshcd_scsi_block_requests(hba);
/*
* fall through to check if we should wait for this
* work to be done or not.