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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 30 Dec 2015 02:26:02 +0000 (02:26 +0000)
commit8b13ca710909eeb40654ccdba2519a6f663f09ce
tree8887e3267dda09f2ef23c6bf86e02db9dcc057ce
parentdfc263fdf39a48ac2190c166af9377acba086531
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: Ben Hutchings <ben@decadent.org.uk>
drivers/net/ethernet/atheros/atl1c/atl1c_main.c