Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ipvs: WRR scheduler does not need GFP_ATOMIC allocation

Schedulers are initialized and bound to services only
on commands.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Hans Schillstrom <hans@schillstrom.com>
Signed-off-by: Simon Horman <horms@verge.net.au>

authored by

Julian Anastasov and committed by
Pablo Neira Ayuso
4f2a94dc 4beddbe3

+1 -1
+1 -1
net/netfilter/ipvs/ip_vs_wrr.c
··· 84 84 /* 85 85 * Allocate the mark variable for WRR scheduling 86 86 */ 87 - mark = kmalloc(sizeof(struct ip_vs_wrr_mark), GFP_ATOMIC); 87 + mark = kmalloc(sizeof(struct ip_vs_wrr_mark), GFP_KERNEL); 88 88 if (mark == NULL) 89 89 return -ENOMEM; 90 90