X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=include%2Fnet%2Fbusy_poll.h;h=40296ed976a9778ceb239b99ad783cb99b8b92ef;hb=d842bc6c0579ca7643eed029beabab3ac562a335;hp=73af4a64a5999660127dab0a4d111e50eeadf1b5;hpb=25ea8ecf4d9348e07544e861714b689cadbfa4c3;p=linux-2.6-microblaze.git diff --git a/include/net/busy_poll.h b/include/net/busy_poll.h index 73af4a64a599..40296ed976a9 100644 --- a/include/net/busy_poll.h +++ b/include/net/busy_poll.h @@ -38,7 +38,7 @@ static inline bool net_busy_loop_on(void) static inline bool sk_can_busy_loop(const struct sock *sk) { - return sk->sk_ll_usec && !signal_pending(current); + return READ_ONCE(sk->sk_ll_usec) && !signal_pending(current); } bool sk_busy_loop_end(void *p, unsigned long start_time);