Re: [PATCH 3/3] percpu-refcount: make percpu_ref based on longs instead of ints

2014-09-19 Thread Tejun Heo
On Mon, Sep 08, 2014 at 11:12:22AM +0900, Tejun Heo wrote: > percpu_ref is currently based on ints and the number of refs it can > cover is (1 << 31). This makes it impossible to use a percpu_ref to > count memory objects or pages on 64bit machines as it may overflow. > This forces those users to

[PATCH 3/3] percpu-refcount: make percpu_ref based on longs instead of ints

2014-09-07 Thread Tejun Heo
percpu_ref is currently based on ints and the number of refs it can cover is (1 << 31). This makes it impossible to use a percpu_ref to count memory objects or pages on 64bit machines as it may overflow. This forces those users to somehow aggregate the references before contributing to the percpu_