The big aio poll revert broke various network protocols that don't implement ->poll as a patch in the aio poll serie removed sock_no_poll and made the common code handle this case.
Showing the changes to net (1 of 1 file). Show all
Unified · Split
| @@ -1133,6 +1133,8 @@ static __poll_t sock_poll(struct file *file, poll_table *wait) · 1132 unmodified lines | ||
| 1133 | 1133 | __poll_t events = poll_requested_events(wait); |
| 1134 | 1134 | |
| 1135 | 1135 | sock_poll_busy_loop(sock, events); |
| 1136 | + if (!sock->ops->poll) | |
| 1137 | + return 0; | |
| 1136 | 1138 | return sock->ops->poll(file, sock, wait) | sock_poll_busy_flag(sock); |
| 1137 | 1139 | } |
| 1138 | 1140 | |