Currently OOM work counter is incremented when schedule_work is called and counter is decremented when work is scheduled. But there is possibility of OOM schedule_work is getting called from tasklet context and worker thread context and resulting only one time work execution but active work counter being incremented twice. This scenario may result in OOM work going out of sync and preventing suspend usecase. Avoid this by incrementing the OOM active work count only when work is getting added to global work queue and corresponding count will be decremented when work handler gets executed. Change-Id: Ie02d5b9c821327337a1b822c81c51878af522832 CRs-Fixed: 3787873 |
||
---|---|---|
.. | ||
inc | ||
src |