Re: [PATCH] cpufreq: Fix timer/workqueue corruption by protectingreading governor_enabled

From: Jane Li
Date: Wed Jan 01 2014 - 22:16:12 EST


Yes, I test it. After adding cpufreq_governor_lock in gov_queue_work() and
running same test, there is no debugobjects warning.
But it really can't work at all.. There should be a separate copy of lock
in every file that includes cpufreq.h.. And so this shouldn't have worked.

Oh.. I understand what you mean now. My patch is not right and cannot fix this issue.

By default, the debugobjects warning sometimes occurs after five minutes, and sometimes occurs after twenty hours. With this patch, I test more than fifty hours, and warning did not occurs. It shows that my test time is not long enough and miss the right one.


I have updated PATCH v2, please review again. Thanks.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/