ipvs: LBLCR scheduler does not need GFP_ATOMIC allocation on init
authorJulian Anastasov <ja@ssi.bg>
Fri, 13 Apr 2012 13:49:41 +0000 (16:49 +0300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 8 May 2012 17:37:26 +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_lblcr.c

index 9dcd39a48897e96f11f136eb55fd0015106c7a89..570e31ea427a1b5017fb2e926d9d47d0ac8ad014 100644 (file)
@@ -511,7 +511,7 @@ static int ip_vs_lblcr_init_svc(struct ip_vs_service *svc)
        /*
         *    Allocate the ip_vs_lblcr_table for this service
         */
-       tbl = kmalloc(sizeof(*tbl), GFP_ATOMIC);
+       tbl = kmalloc(sizeof(*tbl), GFP_KERNEL);
        if (tbl == NULL)
                return -ENOMEM;