diff options
author | Josef Bacik <jbacik@fb.com> | 2017-01-17 07:51:04 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-18 13:04:29 -0500 |
commit | 6cd66616834c89b8a6c8a182c4c99e5478cf6d6b (patch) | |
tree | ec04f3dcdbd51a884bc4a77711f5c3b0caa6df26 /crypto/asymmetric_keys | |
parent | b9470c27607bed1ad3450de789c154f225530112 (diff) | |
download | talos-obmc-linux-6cd66616834c89b8a6c8a182c4c99e5478cf6d6b.tar.gz talos-obmc-linux-6cd66616834c89b8a6c8a182c4c99e5478cf6d6b.zip |
inet: don't check for bind conflicts twice when searching for a port
This is just wasted time, we've already found a tb that doesn't have a bind
conflict, and we don't drop the head lock so scanning again isn't going to give
us a different answer. Instead move the tb->reuse setting logic outside of the
found_tb path and put it in the success: path. Then make it so that we don't
goto again if we find a bind conflict in the found_tb path as we won't reach
this anymore when we are scanning for an ephemeral port.
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto/asymmetric_keys')
0 files changed, 0 insertions, 0 deletions