aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/busy_poll.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-07-30 09:42:11 +0200
committerDavid S. Miller <davem@davemloft.net>2018-07-30 09:10:25 -0700
commitd8bbd13beeaacd6494954bf5b945b54ccb2af309 (patch)
treee3c719c6148c5a38aedc727618122e3e6e2a6b04 /include/net/busy_poll.h
parentnet: simplify sock_poll_wait (diff)
downloadlinux-dev-d8bbd13beeaacd6494954bf5b945b54ccb2af309.tar.xz
linux-dev-d8bbd13beeaacd6494954bf5b945b54ccb2af309.zip
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: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/busy_poll.h')
0 files changed, 0 insertions, 0 deletions