Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1971d226 authored by Vijay Viswanath's avatar Vijay Viswanath
Browse files

mmc: sdhci-msm: Add new workqueue for pm qos unvoting



mmc request issuing thread sometimes flushes the pm_qos unvoting
works. The mmc thread can come in memory reclaim path and so any work
it flushes must be running in a workqueue with MEM_RECLAIM flag set.
So create a new workqueue for pm_qos_irq und pm_qos_cpu unvoting and
queue the works there.

Without this change observing below warning in below pointed stack:
___________________________________________________________________
Warning: workqueue: PF_MEMALLOC task 304(mmc-cmdqd/0) is flushing
!WQ_MEM_RECLAIM events:sdhci_msm_pm_qos_irq_unvote_work

callstack:
(check_flush_dependency)
(flush_work)
(__cancel_work_timer)
(cancel_delayed_work_sync)
(sdhci_msm_pm_qos_irq_vote)
(cmdq_request)
(mmc_cmdq_start_req)
(mmc_blk_cmdq_issue_rq)
(mmc_cmdq_thread)
___________________________________________________________________

Change-Id: Iae0bca3e6f15f1a5a099e0e693982f64a9ed3f0e
Signed-off-by: default avatarVijay Viswanath <vviswana@codeaurora.org>
parent ccf21f85
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment