ipvs: WRR scheduler does not need GFP_ATOMIC allocation
authorJulian Anastasov <ja@ssi.bg>
Fri, 13 Apr 2012 13:49:42 +0000 (16:49 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 8 May 2012 17:37:22 +0000 (19:37 +0200)
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>
net/netfilter/ipvs/ip_vs_wrr.c

index fd0d4e09876a6177d167af378ef503f6ca64d6a8..231be7dd547a9cd5fdf1a7742305b85717e99aab 100644 (file)
@@ -84,7 +84,7 @@ static int ip_vs_wrr_init_svc(struct ip_vs_service *svc)
        /*
         *    Allocate the mark variable for WRR scheduling
         */
-       mark = kmalloc(sizeof(struct ip_vs_wrr_mark), GFP_ATOMIC);
+       mark = kmalloc(sizeof(struct ip_vs_wrr_mark), GFP_KERNEL);
        if (mark == NULL)
                return -ENOMEM;