All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] Convert some GFP_ATOMIC allocations
@ 2012-04-13 13:49 Julian Anastasov
  2012-04-13 13:49 ` [PATCH 1/6] ipvs: timeout tables do not need GFP_ATOMIC allocation Julian Anastasov
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Julian Anastasov @ 2012-04-13 13:49 UTC (permalink / raw)
  To: Simon Horman; +Cc: lvs-devel

	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(-)

-- 
1.7.3.4


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 1/6] ipvs: timeout tables do not need GFP_ATOMIC allocation
  2012-04-13 13:49 [PATCH 0/6] Convert some GFP_ATOMIC allocations Julian Anastasov
@ 2012-04-13 13:49 ` Julian Anastasov
  2012-04-13 13:49 ` [PATCH 2/6] ipvs: SH scheduler does " Julian Anastasov
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Julian Anastasov @ 2012-04-13 13:49 UTC (permalink / raw)
  To: Simon Horman; +Cc: lvs-devel

	They are called only on initialization.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
---
 net/netfilter/ipvs/ip_vs_proto.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/netfilter/ipvs/ip_vs_proto.c b/net/netfilter/ipvs/ip_vs_proto.c
index 8531293..f549ff7 100644
--- a/net/netfilter/ipvs/ip_vs_proto.c
+++ b/net/netfilter/ipvs/ip_vs_proto.c
@@ -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);
 }
 
 
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/6] ipvs: SH scheduler does not need GFP_ATOMIC allocation
  2012-04-13 13:49 [PATCH 0/6] Convert some GFP_ATOMIC allocations Julian Anastasov
  2012-04-13 13:49 ` [PATCH 1/6] ipvs: timeout tables do not need GFP_ATOMIC allocation Julian Anastasov
@ 2012-04-13 13:49 ` Julian Anastasov
  2012-04-13 13:49 ` [PATCH 3/6] ipvs: DH " Julian Anastasov
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Julian Anastasov @ 2012-04-13 13:49 UTC (permalink / raw)
  To: Simon Horman; +Cc: lvs-devel

        Schedulers are initialized and bound to services only
on commands.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
---
 net/netfilter/ipvs/ip_vs_sh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/netfilter/ipvs/ip_vs_sh.c b/net/netfilter/ipvs/ip_vs_sh.c
index 069e8d4..47182dd 100644
--- a/net/netfilter/ipvs/ip_vs_sh.c
+++ b/net/netfilter/ipvs/ip_vs_sh.c
@@ -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;
 
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 3/6] ipvs: DH scheduler does not need GFP_ATOMIC allocation
  2012-04-13 13:49 [PATCH 0/6] Convert some GFP_ATOMIC allocations Julian Anastasov
  2012-04-13 13:49 ` [PATCH 1/6] ipvs: timeout tables do not need GFP_ATOMIC allocation Julian Anastasov
  2012-04-13 13:49 ` [PATCH 2/6] ipvs: SH scheduler does " Julian Anastasov
@ 2012-04-13 13:49 ` Julian Anastasov
  2012-04-13 13:49 ` [PATCH 4/6] ipvs: LBLC scheduler does not need GFP_ATOMIC allocation on init Julian Anastasov
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Julian Anastasov @ 2012-04-13 13:49 UTC (permalink / raw)
  To: Simon Horman; +Cc: lvs-devel

	Schedulers are initialized and bound to services only
on commands.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
---
 net/netfilter/ipvs/ip_vs_dh.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/netfilter/ipvs/ip_vs_dh.c b/net/netfilter/ipvs/ip_vs_dh.c
index 1c269e5..127ecb3 100644
--- a/net/netfilter/ipvs/ip_vs_dh.c
+++ b/net/netfilter/ipvs/ip_vs_dh.c
@@ -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;
 
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 4/6] ipvs: LBLC scheduler does not need GFP_ATOMIC allocation on init
  2012-04-13 13:49 [PATCH 0/6] Convert some GFP_ATOMIC allocations Julian Anastasov
                   ` (2 preceding siblings ...)
  2012-04-13 13:49 ` [PATCH 3/6] ipvs: DH " Julian Anastasov
@ 2012-04-13 13:49 ` Julian Anastasov
  2012-04-13 13:49 ` [PATCH 5/6] ipvs: LBLCR " Julian Anastasov
  2012-04-13 13:49 ` [PATCH 6/6] ipvs: WRR scheduler does not need GFP_ATOMIC allocation Julian Anastasov
  5 siblings, 0 replies; 7+ messages in thread
From: Julian Anastasov @ 2012-04-13 13:49 UTC (permalink / raw)
  To: Simon Horman; +Cc: lvs-devel

	Schedulers are initialized and bound to services only
on commands.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
---
 net/netfilter/ipvs/ip_vs_lblc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/netfilter/ipvs/ip_vs_lblc.c b/net/netfilter/ipvs/ip_vs_lblc.c
index 0f16283..26e6ba5 100644
--- a/net/netfilter/ipvs/ip_vs_lblc.c
+++ b/net/netfilter/ipvs/ip_vs_lblc.c
@@ -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;
 
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 5/6] ipvs: LBLCR scheduler does not need GFP_ATOMIC allocation on init
  2012-04-13 13:49 [PATCH 0/6] Convert some GFP_ATOMIC allocations Julian Anastasov
                   ` (3 preceding siblings ...)
  2012-04-13 13:49 ` [PATCH 4/6] ipvs: LBLC scheduler does not need GFP_ATOMIC allocation on init Julian Anastasov
@ 2012-04-13 13:49 ` Julian Anastasov
  2012-04-13 13:49 ` [PATCH 6/6] ipvs: WRR scheduler does not need GFP_ATOMIC allocation Julian Anastasov
  5 siblings, 0 replies; 7+ messages in thread
From: Julian Anastasov @ 2012-04-13 13:49 UTC (permalink / raw)
  To: Simon Horman; +Cc: lvs-devel

	Schedulers are initialized and bound to services only
on commands.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
---
 net/netfilter/ipvs/ip_vs_lblcr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/netfilter/ipvs/ip_vs_lblcr.c b/net/netfilter/ipvs/ip_vs_lblcr.c
index eec797f..adecc83 100644
--- a/net/netfilter/ipvs/ip_vs_lblcr.c
+++ b/net/netfilter/ipvs/ip_vs_lblcr.c
@@ -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;
 
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 6/6] ipvs: WRR scheduler does not need GFP_ATOMIC allocation
  2012-04-13 13:49 [PATCH 0/6] Convert some GFP_ATOMIC allocations Julian Anastasov
                   ` (4 preceding siblings ...)
  2012-04-13 13:49 ` [PATCH 5/6] ipvs: LBLCR " Julian Anastasov
@ 2012-04-13 13:49 ` Julian Anastasov
  5 siblings, 0 replies; 7+ messages in thread
From: Julian Anastasov @ 2012-04-13 13:49 UTC (permalink / raw)
  To: Simon Horman; +Cc: lvs-devel

	Schedulers are initialized and bound to services only
on commands.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
---
 net/netfilter/ipvs/ip_vs_wrr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/netfilter/ipvs/ip_vs_wrr.c b/net/netfilter/ipvs/ip_vs_wrr.c
index fd0d4e0..231be7d 100644
--- a/net/netfilter/ipvs/ip_vs_wrr.c
+++ b/net/netfilter/ipvs/ip_vs_wrr.c
@@ -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;
 
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-04-13 13:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-13 13:49 [PATCH 0/6] Convert some GFP_ATOMIC allocations Julian Anastasov
2012-04-13 13:49 ` [PATCH 1/6] ipvs: timeout tables do not need GFP_ATOMIC allocation Julian Anastasov
2012-04-13 13:49 ` [PATCH 2/6] ipvs: SH scheduler does " Julian Anastasov
2012-04-13 13:49 ` [PATCH 3/6] ipvs: DH " Julian Anastasov
2012-04-13 13:49 ` [PATCH 4/6] ipvs: LBLC scheduler does not need GFP_ATOMIC allocation on init Julian Anastasov
2012-04-13 13:49 ` [PATCH 5/6] ipvs: LBLCR " Julian Anastasov
2012-04-13 13:49 ` [PATCH 6/6] ipvs: WRR scheduler does not need GFP_ATOMIC allocation Julian Anastasov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.