diff --git a/include/net/busy_poll.h b/include/net/busy_poll.h index c76a5e9894dacc81d64950ab6af1ab6267cc31f4..8f42f6f3af86f7df7704ede0580a3ee5ca28a9cc 100644 --- a/include/net/busy_poll.h +++ b/include/net/busy_poll.h @@ -43,7 +43,7 @@ extern unsigned int sysctl_net_busy_poll __read_mostly; static inline bool net_busy_loop_on(void) { - return sysctl_net_busy_poll; + return READ_ONCE(sysctl_net_busy_poll); } static inline bool sk_can_busy_loop(const struct sock *sk)