inet: avoid fastopen lock for regular accept()
authorEric Dumazet <edumazet@google.com>
Wed, 18 Mar 2015 01:32:30 +0000 (18:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Mar 2015 02:01:56 +0000 (22:01 -0400)
commite3d95ad7da4f8955599f0786d7c70497c0aaf8c9
treec427b35237fcb5ee29cc973d96c1d8b893bb7491
parent9439ce00f208d95703a6725e4ea986dd90e37ffd
inet: avoid fastopen lock for regular accept()

It is not because a TCP listener is FastOpen ready that
all incoming sockets actually used FastOpen.

Avoid taking queue->fastopenq->lock if not needed.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_connection_sock.c