On Tue, Aug 25 2020 at 18:26, Waiman Long wrote:
On 8/25/20 12:53 AM, Zhang, Qiang wrote:It is actually safe because CPU hotplug is globally serialized and there
When a cpu going offline, we should free objects in "percpu_obj_pool"The percpu free object pool is supposed to be accessed only by that
free_objs list which corresponding to this cpu.
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.
is no way that an offline CPU will come back from death valley
magically. If such a zombie ever surfaces then we have surely more
serious problems than accessing that pool :)