summaryrefslogtreecommitdiff
path: root/net/iucv
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-05-17 10:45:34 +0800
committerDavid S. Miller <davem@davemloft.net>2015-05-17 23:43:31 -0400
commitb9fbe709de4dbe663613ebb852f35aef2467872c (patch)
tree028eeb771c3f596b66853dce3a22d93425848187 /net/iucv
parentde133464c9e70808d3e5a861294bc55940988178 (diff)
netlink: Use random autobind rover
Currently we use a global rover to select a port ID that is unique. This used to work consistently when it was protected with a global lock. However as we're now lockless, the global rover can exhibit pathological behaviour should multiple threads all stomp on it at the same time. Granted this will eventually resolve itself but the process is suboptimal. This patch replaces the global rover with a pseudorandom starting point to avoid this issue. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/iucv')
0 files changed, 0 insertions, 0 deletions