netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL nf-2.6] IPVS
@ 2011-03-01 22:59 Simon Horman
  2011-03-01 22:59 ` [PATCH] ipvs: fix dst_lock locking on dest update Simon Horman
  2011-03-02 10:58 ` [GIT PULL nf-2.6] IPVS Patrick McHardy
  0 siblings, 2 replies; 7+ messages in thread
From: Simon Horman @ 2011-03-01 22:59 UTC (permalink / raw)
  To: lvs-devel, netdev, netfilter-devel, netfilter
  Cc: Hans Schillstrom, Julian Anastasov, Patrick McHardy, 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

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

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

* [PATCH] ipvs: fix dst_lock locking on dest update
  2011-03-01 22:59 [GIT PULL nf-2.6] IPVS Simon Horman
@ 2011-03-01 22:59 ` Simon Horman
  2011-03-02 10:58 ` [GIT PULL nf-2.6] IPVS Patrick McHardy
  1 sibling, 0 replies; 7+ messages in thread
From: Simon Horman @ 2011-03-01 22:59 UTC (permalink / raw)
  To: lvs-devel, netdev, netfilter-devel, netfilter
  Cc: Hans Schillstrom, Julian Anastasov, Patrick McHardy, Simon Horman

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 <hans@schillstrom.com>
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


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

* Re: [GIT PULL nf-2.6] IPVS
  2011-03-01 22:59 [GIT PULL nf-2.6] IPVS Simon Horman
  2011-03-01 22:59 ` [PATCH] ipvs: fix dst_lock locking on dest update Simon Horman
@ 2011-03-02 10:58 ` Patrick McHardy
  2011-03-02 22:06   ` Simon Horman
  1 sibling, 1 reply; 7+ messages in thread
From: Patrick McHardy @ 2011-03-02 10:58 UTC (permalink / raw)
  To: Simon Horman
  Cc: lvs-devel, netdev, netfilter-devel, netfilter, Hans Schillstrom,
	Julian Anastasov

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.

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

* Re: [GIT PULL nf-2.6] IPVS
  2011-03-02 10:58 ` [GIT PULL nf-2.6] IPVS Patrick McHardy
@ 2011-03-02 22:06   ` Simon Horman
  2011-03-03  6:53     ` Patrick McHardy
  0 siblings, 1 reply; 7+ messages in thread
From: Simon Horman @ 2011-03-02 22:06 UTC (permalink / raw)
  To: Patrick McHardy
  Cc: lvs-devel, netdev, netfilter-devel, netfilter, Hans Schillstrom,
	Julian Anastasov

On Wed, Mar 02, 2011 at 11:58:18AM +0100, Patrick McHardy wrote:
> 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.

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.

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

* Re: [GIT PULL nf-2.6] IPVS
  2011-03-02 22:06   ` Simon Horman
@ 2011-03-03  6:53     ` Patrick McHardy
  2011-03-03  7:47       ` Simon Horman
  2011-03-03  8:31       ` David Miller
  0 siblings, 2 replies; 7+ messages in thread
From: Patrick McHardy @ 2011-03-03  6:53 UTC (permalink / raw)
  To: Simon Horman
  Cc: lvs-devel, netdev, netfilter-devel, netfilter, Hans Schillstrom,
	Julian Anastasov

On 02.03.2011 23:06, Simon Horman wrote:
> On Wed, Mar 02, 2011 at 11:58:18AM +0100, Patrick McHardy wrote:
>> 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.
> 
> 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.


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

* Re: [GIT PULL nf-2.6] IPVS
  2011-03-03  6:53     ` Patrick McHardy
@ 2011-03-03  7:47       ` Simon Horman
  2011-03-03  8:31       ` David Miller
  1 sibling, 0 replies; 7+ messages in thread
From: Simon Horman @ 2011-03-03  7:47 UTC (permalink / raw)
  To: Patrick McHardy
  Cc: lvs-devel, netdev, netfilter-devel, netfilter, Hans Schillstrom,
	Julian Anastasov

On Thu, Mar 03, 2011 at 07:53:06AM +0100, Patrick McHardy wrote:
> On 02.03.2011 23:06, Simon Horman wrote:
> > On Wed, Mar 02, 2011 at 11:58:18AM +0100, Patrick McHardy wrote:
> >> 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.
> > 
> > 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.


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

* Re: [GIT PULL nf-2.6] IPVS
  2011-03-03  6:53     ` Patrick McHardy
  2011-03-03  7:47       ` Simon Horman
@ 2011-03-03  8:31       ` David Miller
  1 sibling, 0 replies; 7+ messages in thread
From: David Miller @ 2011-03-03  8:31 UTC (permalink / raw)
  To: kaber; +Cc: horms, lvs-devel, netdev, netfilter-devel, netfilter, hans, ja

From: Patrick McHardy <kaber@trash.net>
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.

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

end of thread, other threads:[~2011-03-03  8:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-01 22:59 [GIT PULL nf-2.6] IPVS Simon Horman
2011-03-01 22:59 ` [PATCH] ipvs: fix dst_lock locking on dest update Simon Horman
2011-03-02 10:58 ` [GIT PULL nf-2.6] IPVS Patrick McHardy
2011-03-02 22:06   ` Simon Horman
2011-03-03  6:53     ` Patrick McHardy
2011-03-03  7:47       ` Simon Horman
2011-03-03  8:31       ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).