LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@linux-foundation.org>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] bonding: replace system timer with work queue
Date: Wed, 28 Feb 2007 14:18:01 -0800 [thread overview]
Message-ID: <20070228141801.065d0acb@freekitty> (raw)
In-Reply-To: <Pine.LNX.4.61.0702281000050.9439@tm8103-a.perex-int.cz>
On Wed, 28 Feb 2007 10:12:01 +0100 (CET)
Jaroslav Kysela <perex@suse.cz> wrote:
> Hi,
>
> please, review and apply to mm tree for further testing. The patch
> is also available at
> ftp://ftp.alsa-project.org/pub/kernel-patches/bonding-workqueue.patch .
>
> Thank you,
> Jaroslav
>
You should submit network patches to the entry in the MAINTAINERS file.
BONDING DRIVER
P: Chad Tindel
M: ctindel@users.sourceforge.net
P: Jay Vosburgh
M: fubar@us.ibm.com
L: bonding-devel@lists.sourceforge.net
W: http://sourceforge.net/projects/bonding/
S: Supported
> @@ -3569,20 +3552,20 @@ static int bond_close(struct net_device
> */
>
> if (bond->params.miimon) { /* link check interval, in milliseconds. */
> - del_timer_sync(&bond->mii_timer);
> + cancel_rearming_delayed_workqueue(bond_wq, &bond->mii_work);
> }
>
> if (bond->params.arp_interval) { /* arp interval, in milliseconds. */
> - del_timer_sync(&bond->arp_timer);
> + cancel_rearming_delayed_workqueue(bond_wq, &bond->arp_work);
> }
>
> switch (bond->params.mode) {
> case BOND_MODE_8023AD:
> - del_timer_sync(&(BOND_AD_INFO(bond).ad_timer));
> + cancel_rearming_delayed_workqueue(bond_wq, &(BOND_AD_INFO(bond).ad_work));
> break;
> case BOND_MODE_TLB:
> case BOND_MODE_ALB:
> - del_timer_sync(&(BOND_ALB_INFO(bond).alb_timer));
> + cancel_rearming_delayed_workqueue(bond_wq, &(BOND_ALB_INFO(bond).alb_work));
> break;
> default:
> break;
This part will deadlock since it is not safe to cancel a workqueue
entry with RTNL mutex held. The cancel operation has to wait for the workqueue
to run, and the entry being run maybe stuck waiting for the RTNL.
--
Stephen Hemminger <shemminger@linux-foundation.org>
next prev parent reply other threads:[~2007-02-28 22:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-28 9:12 Jaroslav Kysela
2007-02-28 22:18 ` Stephen Hemminger [this message]
2007-03-01 7:35 ` Andrew Morton
2007-03-01 16:00 ` Stephen Hemminger
2007-03-01 17:00 ` Jay Vosburgh
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=20070228141801.065d0acb@freekitty \
--to=shemminger@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--subject='Re: [PATCH] bonding: replace system timer with work queue' \
/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
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).