]> git.baikalelectronics.ru Git - kernel.git/commit
ehea: Remove sleep at .ndo_get_stats
authorbrenohl@br.ibm.com <brenohl@br.ibm.com>
Mon, 26 Sep 2011 10:11:03 +0000 (10:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Sep 2011 04:47:00 +0000 (00:47 -0400)
commit07c9fb55b7b5850a26c762f9afd55895659c0ac5
treecbe017867792c34285bbf0e1bd9cb0687e985936
parent1b20f433d5e1791c864a1933509f785c770dc172
ehea: Remove sleep at .ndo_get_stats

Currently ehea ndo_get_stats can sleep in two places, in a hcall
and in a GFP_KERNEL alloc, which is not correct.
This patch creates a delayed workqueue that grabs the information each 1
sec from the hardware, and place it into the device structure, so that,
.ndo_get_stats quickly returns the device structure statistics block.

Signed-off-by: Breno Leitao <brenohl@br.ibm.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ehea/ehea.h
drivers/net/ethernet/ibm/ehea/ehea_main.c