On 8/25/20 12:53 AM, Zhang, Qiang wrote:
________________________________________
发件人: [email protected] <[email protected]> 代表 
[email protected] <[email protected]>
发送时间: 2020年8月20日 11:24
收件人: [email protected]; [email protected]; [email protected]
抄送: [email protected]
主题: [PATCH] debugobjects: install cpu hotplug callback

From: Zqiang <[email protected]>

When a cpu going offline, we should free objects in "percpu_obj_pool"
free_objs list which corresponding to this cpu.

The percpu free object pool is supposed to be accessed only by that particular cpu without any lock. Trying to access it from another cpu can cause a race condition unless one can make sure that the offline cpu won't become online in the mean time. There shouldn't be too many free objects in the percpu pool. Is it worth the effort to free them?

Cheers,
Longman

Reply via email to