sparc: Use GFP_ATOMIC in ldc_alloc_exp_dring() as it can be called in softirq context
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Tue, 21 Apr 2015 14:30:41 +0000 (10:30 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jul 2015 17:40:20 +0000 (10:40 -0700)
commitdc911b31255d65ef7e54e416bfbea810af56cf7a
treefae9edde6c251b53aa763545cae94bd03c266076
parentc48465423908a8955cd6de09b871161324cf5205
sparc: Use GFP_ATOMIC in ldc_alloc_exp_dring() as it can be called in softirq context

Upstream commit 671d773297969bebb1732e1cdc1ec03aa53c6be2

Since it is possible for vnet_event_napi to end up doing
vnet_control_pkt_engine -> ... -> vnet_send_attr ->
vnet_port_alloc_tx_ring -> ldc_alloc_exp_dring -> kzalloc()
(i.e., in softirq context), kzalloc() should be called with
GFP_ATOMIC from ldc_alloc_exp_dring.

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/kernel/ldc.c