]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Dec 2015 22:01:00 +0000 (17:01 -0500)
commitf2a3771ae8aca879c32336c76ad05a017629bae2
tree96bccb25824926d04934f7eca81d0e6f134cf1b6
parentd3716f18a7d841565c930efde30737a3557eee69
atl1c: Improve driver not to do order 4 GFP_ATOMIC allocation

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>
drivers/net/ethernet/atheros/atl1c/atl1c_main.c