All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jay Vosburgh <fubar@us.ibm.com>
To: Krzysztof Oledzki <olel@ans.pl>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	davem@davemloft.net, jeff@garzik.org,
	shemminger@linux-foundation.org, netdev@vger.kernel.org,
	Andy Gospodarek <andy@greyhouse.net>
Subject: Re: [patch for 2.6.24? 1/1] bonding: locking fix
Date: Fri, 18 Jan 2008 09:32:44 -0800	[thread overview]
Message-ID: <10345.1200677564@death> (raw)
In-Reply-To: <Pine.LNX.4.64.0801180932440.4570@bizon.gios.gov.pl>

Krzysztof Oledzki <olel@ans.pl> wrote:
[...]
>> 	which makes the warning go away, but Herbert Xu pointed out that
>> there is a potential problem with bond_enslave accessing the mc_lists
>> without sufficient locking.  It's not the only offender, either, and the
>> bond->mc_list references really need to be protected by the bond_lock,
>> and the whole thing probably ought to use dev_mc_sync/unsync instead of
>> what it does now.
>>
>> 	Since the bond_enslave, et al, business isn't a new problem, and
>> I've never heard of it being hit, I'm thinking now to just leave the
>> bond_enslave part for 2.6.25, and fix the lockdep warning for 2.6.24.
>
>It is a new problem, as it never happened with <=2.6.23.

	The lockdep warning is new, but I was referring to the lack of
mutexing between bond_enslave, bond_release, etc and the
set_multicast_list's use of the mc_lists.  There has never been mutexing
of the mc_lists in bond_enslave & friends, so that is not a new problem.

	-J

---
	-Jay Vosburgh, IBM Linux Technology Center, fubar@us.ibm.com

  reply	other threads:[~2008-01-18 17:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200801140904.m0E94vJd020425@imap1.linux-foundation.org>
     [not found] ` <Pine.LNX.4.64.0801142313350.26034@bizon.gios.gov.pl>
2008-01-14 22:47   ` [patch for 2.6.24? 1/1] bonding: locking fix Andrew Morton
2008-01-14 23:01     ` Jay Vosburgh
2008-01-17 23:42       ` Andrew Morton
2008-01-18  0:26         ` Jay Vosburgh
2008-01-18  0:58           ` Krzysztof Oledzki
2008-01-18  1:45             ` Jay Vosburgh
2008-01-18  8:34               ` Krzysztof Oledzki
2008-01-18 17:32                 ` Jay Vosburgh [this message]
2008-01-21  0:57         ` David Miller

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=10345.1200677564@death \
    --to=fubar@us.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=andy@greyhouse.net \
    --cc=davem@davemloft.net \
    --cc=jeff@garzik.org \
    --cc=netdev@vger.kernel.org \
    --cc=olel@ans.pl \
    --cc=shemminger@linux-foundation.org \
    /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 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.