Skip to content
Commit d9b55eeb authored by Tejun Heo's avatar Tejun Heo
Browse files

percpu: remove unit_size power-of-2 restriction



Impact: allow unit_size to be arbitrary multiple of PAGE_SIZE

In dynamic percpu allocator, there is no reason the unit size should
be power of two.  Remove the restriction.

As non-power-of-two unit size means that empty chunks fall into the
same slot index as lightly occupied chunks which is bad for reclaming.
Reserve an extra slot for empty chunks.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 458a3e64
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment