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

Commit 2e40627b authored by Vignesh Radhakrishnan's avatar Vignesh Radhakrishnan Committed by Prasad Sodagudi
Browse files

mm: vmstat: make vmstat_work cpu bound during requeue



vmstat_work is currently a per cpu worker thread that requeues
itself using schedule_delayed_work().

schedule_delayed_work() makes the worker thread unbound. Since
its unbound, when the timer for the delayed workqueue is migrated,
the current code  path  can cause the per cpu worker to get
executed on the CPU other than what it is intended for causing
undesired effects. This overrides the choice of making the worker
per cpu in the first place.

Fix this by using schedule_delayed_work_on() and make it CPU
bound.

Change-Id: Ib7952c544bda7d8ec0a79c52de8f2d80b11637e8
Signed-off-by: default avatarVignesh Radhakrishnan <vigneshr@codeaurora.org>
Signed-off-by: default avatarPrasad Sodagudi <psodagud@codeaurora.org>
parent 630fdcc6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment