[GIT PULL nf-2.6] IPVS

7 messages, 3 authors, 2011-03-03 · open the first message on its own page

[GIT PULL nf-2.6] IPVS

From: Simon Horman <horms@verge.net.au>
Date: 2011-03-01 22:59:34

Hi Patrick,

please consider pulling
git://git.kernel.org/pub/scm/linux/kernel/git/horms/lvs-test-2.6.git for-patrick
to get the following change from Julian. Please note that it is an nf-2.6
(that is 2.6.38-rc) change.

Julian Anastasov (1):
      ipvs: fix dst_lock locking on dest update

 net/netfilter/ipvs/ip_vs_ctl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

[PATCH] ipvs: fix dst_lock locking on dest update

From: Simon Horman <horms@verge.net.au>
Date: 2011-03-01 22:59:35

From: Julian Anastasov <ja@ssi.bg>

	Fix dst_lock usage in __ip_vs_update_dest. We need
_bh locking because destination is updated in user context.
Can cause lockups on frequent destination updates.
Problem reported by Simon Kirby. Bug was introduced
in 2.6.37 from the "ipvs: changes for local real server"
change.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Hans Schillstrom <redacted>
Signed-off-by: Simon Horman <horms@verge.net.au>
---
 net/netfilter/ipvs/ip_vs_ctl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c
index 22f7ad5..ba98e13 100644
--- a/net/netfilter/ipvs/ip_vs_ctl.c
+++ b/net/netfilter/ipvs/ip_vs_ctl.c
@@ -808,9 +808,9 @@ __ip_vs_update_dest(struct ip_vs_service *svc, struct ip_vs_dest *dest,
 	dest->u_threshold = udest->u_threshold;
 	dest->l_threshold = udest->l_threshold;
 
-	spin_lock(&dest->dst_lock);
+	spin_lock_bh(&dest->dst_lock);
 	ip_vs_dst_reset(dest);
-	spin_unlock(&dest->dst_lock);
+	spin_unlock_bh(&dest->dst_lock);
 
 	if (add)
 		ip_vs_new_estimator(&dest->stats);
-- 
1.7.2.3

Re: [GIT PULL nf-2.6] IPVS

From: Patrick McHardy <hidden>
Date: 2011-03-02 10:58:18

Am 01.03.2011 23:59, schrieb Simon Horman:
Hi Patrick,

please consider pulling
git://git.kernel.org/pub/scm/linux/kernel/git/horms/lvs-test-2.6.git for-patrick
to get the following change from Julian. Please note that it is an nf-2.6
(that is 2.6.38-rc) change.

Julian Anastasov (1):
      ipvs: fix dst_lock locking on dest update
Pulled, thanks Simon.

Re: [GIT PULL nf-2.6] IPVS

From: Simon Horman <horms@verge.net.au>
Date: 2011-03-02 22:06:37

On Wed, Mar 02, 2011 at 11:58:18AM +0100, Patrick McHardy wrote:
Am 01.03.2011 23:59, schrieb Simon Horman:
quoted
Hi Patrick,

please consider pulling
git://git.kernel.org/pub/scm/linux/kernel/git/horms/lvs-test-2.6.git for-patrick
to get the following change from Julian. Please note that it is an nf-2.6
(that is 2.6.38-rc) change.

Julian Anastasov (1):
      ipvs: fix dst_lock locking on dest update
Pulled, thanks Simon.
Thanks Patrick.

This change is also needed in nf-next-2.6 but I assume that
will automatically happen when nf-2.6 is merged into nf-next-2.6,
possibly via a merge of net-2.6 into net-next-2.6.

Re: [GIT PULL nf-2.6] IPVS

From: Patrick McHardy <hidden>
Date: 2011-03-03 06:53:06

On 02.03.2011 23:06, Simon Horman wrote:
On Wed, Mar 02, 2011 at 11:58:18AM +0100, Patrick McHardy wrote:
quoted
Am 01.03.2011 23:59, schrieb Simon Horman:
quoted
Hi Patrick,

please consider pulling
git://git.kernel.org/pub/scm/linux/kernel/git/horms/lvs-test-2.6.git for-patrick
to get the following change from Julian. Please note that it is an nf-2.6
(that is 2.6.38-rc) change.

Julian Anastasov (1):
      ipvs: fix dst_lock locking on dest update
Pulled, thanks Simon.
Thanks Patrick.

This change is also needed in nf-next-2.6 but I assume that
will automatically happen when nf-2.6 is merged into nf-next-2.6,
possibly via a merge of net-2.6 into net-next-2.6.
Yes. If you need it as base for further work, the fastest way
is to ask Dave to pull net-2.6 into net-next-2.6, I can then
pull it into nf-next.

Re: [GIT PULL nf-2.6] IPVS

From: Simon Horman <horms@verge.net.au>
Date: 2011-03-03 07:47:34

On Thu, Mar 03, 2011 at 07:53:06AM +0100, Patrick McHardy wrote:
On 02.03.2011 23:06, Simon Horman wrote:
quoted
On Wed, Mar 02, 2011 at 11:58:18AM +0100, Patrick McHardy wrote:
quoted
Am 01.03.2011 23:59, schrieb Simon Horman:
quoted
Hi Patrick,

please consider pulling
git://git.kernel.org/pub/scm/linux/kernel/git/horms/lvs-test-2.6.git for-patrick
to get the following change from Julian. Please note that it is an nf-2.6
(that is 2.6.38-rc) change.

Julian Anastasov (1):
      ipvs: fix dst_lock locking on dest update
Pulled, thanks Simon.
Thanks Patrick.

This change is also needed in nf-next-2.6 but I assume that
will automatically happen when nf-2.6 is merged into nf-next-2.6,
possibly via a merge of net-2.6 into net-next-2.6.
Yes. If you need it as base for further work, the fastest way
is to ask Dave to pull net-2.6 into net-next-2.6, I can then
pull it into nf-next.
There is no rush at this time.

Re: [GIT PULL nf-2.6] IPVS

From: David Miller <davem@davemloft.net>
Date: 2011-03-03 08:30:37

From: Patrick McHardy <redacted>
Date: Thu, 03 Mar 2011 07:53:06 +0100
Yes. If you need it as base for further work, the fastest way
is to ask Dave to pull net-2.6 into net-next-2.6, I can then
pull it into nf-next.
I plan to do a net-2.6 into net-next-2.6 merge for another reason
tomorrow, so this should be taken care of soon.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help