Convert some GFP_ATOMIC allocations
Subsystems (3)
Julian Anastasov
maintainercover Convert some GFP_ATOMIC allocations
Convert mostly schedulers and one place for timeout table.
Only one place is left: register_ip_vs_proto_netns. I hope someone will fix it together with other changes.
Julian Anastasov (6):
ipvs: timeout tables do not need GFP_ATOMIC allocation
ipvs: SH scheduler does not need GFP_ATOMIC allocation
ipvs: DH scheduler does not need GFP_ATOMIC allocation
ipvs: LBLC scheduler does not need GFP_ATOMIC allocation on init
ipvs: LBLCR scheduler does not need GFP_ATOMIC allocation on init
ipvs: WRR scheduler does not need GFP_ATOMIC allocation
net/netfilter/ipvs/ip_vs_dh.c | 2 +- net/netfilter/ipvs/ip_vs_lblc.c | 2 +- net/netfilter/ipvs/ip_vs_lblcr.c | 2 +- net/netfilter/ipvs/ip_vs_proto.c | 2 +- net/netfilter/ipvs/ip_vs_sh.c | 2 +- net/netfilter/ipvs/ip_vs_wrr.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-)
Signature · 1 line
1.7.3.4
Julian Anastasov
maintainerPATCH 1/6 ipvs: timeout tables do not need GFP_ATOMIC allocation
They are called only on initialization.
--- net/netfilter/ipvs/ip_vs_proto.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/netfilter/ipvs/ip_vs_proto.c +1 -1
@@ -197,7 +197,7 @@ void ip_vs_protocol_timeout_change(struct netns_ipvs *ipvs, int flags)int *ip_vs_create_timeout_table (int *table,int size) { -return kmemdup (table, size,GFP_ATOMIC ); +return kmemdup (table, size,GFP_KERNEL ); }
Signature · 1 line
1.7.3.4
Julian Anastasov
maintainerPATCH 2/6 ipvs: SH scheduler does not need GFP_ATOMIC allocation
In reply to Julian Anastasov Schedulers are initialized and bound to services only
on commands.
--- net/netfilter/ipvs/ip_vs_sh.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/netfilter/ipvs/ip_vs_sh.c +1 -1
@@ -162,7 +162,7 @@ static int ip_vs_sh_init_svc(struct ip_vs_service *svc)/* allocate the SH table for this service */ tbl =kmalloc (sizeof (struct ip_vs_sh_bucket )*IP_VS_SH_TAB_SIZE , -GFP_ATOMIC ); +GFP_KERNEL );if (tbl ==NULL )return -ENOMEM ;
Signature · 1 line
1.7.3.4
Julian Anastasov
maintainerPATCH 3/6 ipvs: DH scheduler does not need GFP_ATOMIC allocation
In reply to Julian Anastasov Schedulers are initialized and bound to services only
on commands.
--- net/netfilter/ipvs/ip_vs_dh.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/netfilter/ipvs/ip_vs_dh.c +1 -1
@@ -149,7 +149,7 @@ static int ip_vs_dh_init_svc(struct ip_vs_service *svc)/* allocate the DH table for this service */ tbl =kmalloc (sizeof (struct ip_vs_dh_bucket )*IP_VS_DH_TAB_SIZE , -GFP_ATOMIC ); +GFP_KERNEL );if (tbl ==NULL )return -ENOMEM ;
Signature · 1 line
1.7.3.4
Julian Anastasov
maintainerPATCH 4/6 ipvs: LBLC scheduler does not need GFP_ATOMIC allocation on init
In reply to Julian Anastasov Schedulers are initialized and bound to services only
on commands.
--- net/netfilter/ipvs/ip_vs_lblc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/netfilter/ipvs/ip_vs_lblc.c +1 -1
@@ -342,7 +342,7 @@ static int ip_vs_lblc_init_svc(struct ip_vs_service *svc)/* * Allocate the ip_vs_lblc_table for this service */ - tbl =kmalloc (sizeof (*tbl),GFP_ATOMIC ); + tbl =kmalloc (sizeof (*tbl),GFP_KERNEL );if (tbl ==NULL )return -ENOMEM ;
Signature · 1 line
1.7.3.4
Julian Anastasov
maintainerPATCH 5/6 ipvs: LBLCR scheduler does not need GFP_ATOMIC allocation on init
In reply to Julian Anastasov Schedulers are initialized and bound to services only
on commands.
--- net/netfilter/ipvs/ip_vs_lblcr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/netfilter/ipvs/ip_vs_lblcr.c +1 -1
@@ -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 ;
Signature · 1 line
1.7.3.4
Julian Anastasov
maintainerPATCH 6/6 ipvs: WRR scheduler does not need GFP_ATOMIC allocation
In reply to Julian Anastasov Schedulers are initialized and bound to services only
on commands.
--- net/netfilter/ipvs/ip_vs_wrr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/netfilter/ipvs/ip_vs_wrr.c +1 -1
@@ -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 ;
Signature · 1 line
1.7.3.4