netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: nikolay@redhat.com
Cc: netdev@vger.kernel.org, andy@greyhouse.net, fubar@us.ibm.com
Subject: Re: [PATCH net-next v3] bonding: fix system hang due to fast igmp timer rescheduling
Date: Thu, 01 Aug 2013 15:53:11 -0700 (PDT)	[thread overview]
Message-ID: <20130801.155311.357862923906678467.davem@davemloft.net> (raw)
In-Reply-To: <1375350702-7777-1-git-send-email-nikolay@redhat.com>

From: Nikolay Aleksandrov <nikolay@redhat.com>
Date: Thu,  1 Aug 2013 11:51:42 +0200

> From: "Nikolay Aleksandrov" <nikolay@redhat.com>
> 
> After commit 4aa5dee4d9 ("net: convert resend IGMP to notifier event")
> we try to acquire rtnl in bond_resend_igmp_join_requests but it can be
> scheduled with rtnl already held (e.g. when bond_change_active_slave is
> called with rtnl) causing a loop of immediate reschedules + calls because
> rtnl_trylock fails each time since it's being already held.
> For me this issue leads to system hangs very easy:
> modprobe bonding; ifconfig bond0 up; ifenslave bond0 eth0; rmmod
> bonding;
> 
> The fix is to introduce a small (1 jiffy) delay which is enough for the
> sections holding rtnl to finish without putting any strain on the system.
> Also adjust the timer in bond_change_active_slave to be 1 jiffy, since
> most of the time it's called with rtnl already held.
> 
> Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>

Applied, thanks.

      reply	other threads:[~2013-08-01 22:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-01  9:51 [PATCH net-next v3] bonding: fix system hang due to fast igmp timer rescheduling Nikolay Aleksandrov
2013-08-01 22:53 ` David Miller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130801.155311.357862923906678467.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=andy@greyhouse.net \
    --cc=fubar@us.ibm.com \
    --cc=netdev@vger.kernel.org \
    --cc=nikolay@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).