]> git.baikalelectronics.ru Git - 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)
commit30e226161efacf6c022d36bab6d40570f3afb88b
tree96bccb25824926d04934f7eca81d0e6f134cf1b6
parent1711db106aa74f2530f0e129077c23a00400d1f0
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