Repository navigation
Commit d8bbd13
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>1 parent dd979b4 commit d8bbd13
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2064 | 2064 | | |
2065 | 2065 | | |
2066 | 2066 | | |
2067 | | - | |
2068 | 2067 | | |
2069 | | - | |
2070 | | - | |
| 2068 | + | |
| 2069 | + | |
2071 | 2070 | | |
2072 | 2071 | | |
2073 | 2072 | | |
| |||
0 commit comments