From: Vlad Yasevich Date: Mon, 23 Nov 2009 20:54:01 +0000 (-0500) Subject: sctp: prevent too-fast association id reuse X-Git-Tag: v2.6.33-rc1~388^2~167^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4814326b59db0cfd18ac652626d955ad3f57fb0f;p=pandora-kernel.git sctp: prevent too-fast association id reuse We use the idr subsystem and always ask for an id at or above 1. This results in a id reuse when one association is terminated while another is created. To prevent re-use, we keep track of the last id returned and ask for that id + 1 as a base for each query. We let the idr spin lock protect this base id as well. Signed-off-by: Vlad Yasevich --- Reading git-diff-tree failed