Re: [PATCH 76/77] sctp: convert to idr_alloc()

2013-02-07 Thread Neil Horman
On Wed, Feb 06, 2013 at 11:40:48AM -0800, Tejun Heo wrote: > Convert to the much saner new idr interface. > > Only compile tested. > > v2: Don't preload if @gfp doesn't contain __GFP_WAIT as the function > may be being called from non-process ocntext. Also, add a comment > explaining @id

Re: [PATCH 76/77] sctp: convert to idr_alloc()

2013-02-06 Thread Vlad Yasevich
On 02/06/2013 02:40 PM, Tejun Heo wrote: Convert to the much saner new idr interface. Only compile tested. v2: Don't preload if @gfp doesn't contain __GFP_WAIT as the function may be being called from non-process ocntext. Also, add a comment explaining @idr_low never becomes zero. S

[PATCH 76/77] sctp: convert to idr_alloc()

2013-02-06 Thread Tejun Heo
Convert to the much saner new idr interface. Only compile tested. v2: Don't preload if @gfp doesn't contain __GFP_WAIT as the function may be being called from non-process ocntext. Also, add a comment explaining @idr_low never becomes zero. Signed-off-by: Tejun Heo Acked-by: Neil Horma