eventpoll: support busy poll per epoll instance
authorJoe Damato <jdamato@fastly.com>
Tue, 13 Feb 2024 06:16:42 +0000 (06:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Feb 2024 11:01:00 +0000 (11:01 +0000)
commit85455c795c07882091b15c0613f78d4567d9be36
treeb5fd974a1be4e78b05626eb831247579d1f69051
parent723615a14b870ab48d92dc39483043022ef05e12
eventpoll: support busy poll per epoll instance

Allow busy polling on a per-epoll context basis. The per-epoll context
usec timeout value is preferred, but the pre-existing system wide sysctl
value is still supported if it specified.

busy_poll_usecs is a u32, but in a follow up patch the ioctl provided to
the user only allows setting a value from 0 to S32_MAX.

Signed-off-by: Joe Damato <jdamato@fastly.com>
Acked-by: Stanislav Fomichev <sdf@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
fs/eventpoll.c