diff --git a/include/net/sock.h b/include/net/sock.h index c815c99b71db3..a26f5684084d0 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -2562,7 +2562,7 @@ static inline gfp_t gfp_any(void) static inline gfp_t gfp_memcg_charge(void) { - return in_softirq() ? GFP_NOWAIT : GFP_KERNEL; + return in_softirq() ? GFP_ATOMIC : GFP_KERNEL; } static inline long sock_rcvtimeo(const struct sock *sk, bool noblock)