]> Pileus Git - ~andy/linux/commit
sfc: Add GFP flags to efx_nic_alloc_buffer() and make most callers allow blocking
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 18 Sep 2012 20:59:52 +0000 (21:59 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Wed, 21 Aug 2013 18:43:47 +0000 (19:43 +0100)
commit0d19a540beb78493cd5acb7428760af0dc1ea154
tree0150783c3738889fa56315b3acfd038d635824fa
parentf3ad50034425692965a0f2becdd9c45ecb45cd66
sfc: Add GFP flags to efx_nic_alloc_buffer() and make most callers allow blocking

Most call sites for efx_nic_alloc_buffer() are part of the probe or
reconfiguration paths and can allocate with GFP_KERNEL.  A few others
should use GFP_NOIO (I think).  Only one is in atomic context and
must use the current GFP_ATOMIC.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/falcon.c
drivers/net/ethernet/sfc/mcdi_mon.c
drivers/net/ethernet/sfc/mcdi_port.c
drivers/net/ethernet/sfc/nic.c
drivers/net/ethernet/sfc/nic.h
drivers/net/ethernet/sfc/ptp.c
drivers/net/ethernet/sfc/siena.c
drivers/net/ethernet/sfc/siena_sriov.c
drivers/net/ethernet/sfc/tx.c