Skip to content
Commit d8bbd13b authored by Christoph Hellwig's avatar Christoph Hellwig Committed by David S. Miller
Browse files

net: don not detour through struct sock to find the poll waitqueue



For any open socket file descriptor sock->sk->sk_wq->wait will always
point to sock->wq->wait.  That means we can do the shorter dereference
and removal a NULL check and don't have to not worry about any RCU
protection.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dd979b4d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment