Re: [PATCH v2 60/62] sctp: convert to idr_alloc()

From: Neil Horman
Date: Tue Feb 05 2013 - 10:22:41 EST


On Mon, Feb 04, 2013 at 08:42:38AM -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 @idr_low never becomes zero.
>
> Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>
> Acked-by: Neil Horman <nhorman@xxxxxxxxxxxxx>
> Cc: Vlad Yasevich <vyasevich@xxxxxxxxx>
> Cc: Sridhar Samudrala <sri@xxxxxxxxxx>
> Cc: linux-sctp@xxxxxxxxxxxxxxx
> ---
> net/sctp/associola.c | 31 +++++++++++++++----------------
> 1 file changed, 15 insertions(+), 16 deletions(-)
>
I dont' think the documentation was really needed, but the interrupt context fix
was a good catch

Acked-by: Neil Horman <nhorman@xxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/