atl1c: Improve driver not to do order 4 GFP_ATOMIC allocation
authorPavel Machek <pavel@ucw.cz>
Fri, 4 Dec 2015 08:50:00 +0000 (09:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Jan 2016 03:47:54 +0000 (19:47 -0800)
commitcbc3e98d4cba328bbb1aec5da784c5e84f601954
treee90444f49778d605d8cc35c2e740092593dc667d
parent6089a80384074617cbe77ba8d315f24a7741a437
atl1c: Improve driver not to do order 4 GFP_ATOMIC allocation

[ Upstream commit f2a3771ae8aca879c32336c76ad05a017629bae2 ]

atl1c driver is doing order-4 allocation with GFP_ATOMIC
priority. That often breaks  networking after resume. Switch to
GFP_KERNEL. Still not ideal, but should be significantly better.

atl1c_setup_ring_resources() is called from .open() function, and
already uses GFP_KERNEL, so this change is safe.

Signed-off-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/atheros/atl1c/atl1c_main.c