From: Jay Vosburgh <fubar@us.ibm.com>
To: Andi Kleen <andi@firstfloor.org>
Cc: Andy Gospodarek <andy@greyhouse.net>,
netdev@vger.kernel.org, amwang@redhat.com
Subject: Re: [PATCH 2.6.35] bonding: prevent netpoll over bonded interfaces
Date: Fri, 25 Jun 2010 15:52:28 -0700 [thread overview]
Message-ID: <22059.1277506348@death.nxdomain.ibm.com> (raw)
In-Reply-To: <87y6e2d9rd.fsf@basil.nowhere.org>
Andi Kleen <andi@firstfloor.org> wrote:
>Andy Gospodarek <andy@greyhouse.net> writes:
>
>> Support for netpoll over bonded interfaces was added here:
>>
>> commit f6dc31a85cd46a959bdd987adad14c3b645e03c1
>> Author: WANG Cong <amwang@redhat.com>
>> Date: Thu May 6 00:48:51 2010 -0700
>>
>> bonding: make bonding support netpoll
>>
>> but it is bad enough that we should probably just disable netpoll over
>> bonding until some of the locking logic in the bonding driver is changed
>> or converted completely to RCU. Simple actions like changing the active
>> slave in active-backup mode will hang the box if a high enough printk
>> debugging level is enabled.
>
>Normally you just need to prevent the printks when called from poll
>context. That's not rocket science.
The problem with bonding is that its own printks will come back
into bonding via netpoll and deadlock in various ways. Without re-doing
the locking, the fix would really be to make every printk in bonding
happen without holding any locks. Converting the driver to RCU is
probably the only way to resolve this, and that's at least verging on
rocket science.
I'm in favor of the patch; netpoll over bonding is sufficiently
unstable that I'm comfortable requiring that it be explicitly enabled by
the user. I'd also be comfortable with a patch that removes netpoll for
bonding, but I don't mind leaving the netpoll stuff there for use by
those who want to live dangerously.
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
-J
---
-Jay Vosburgh, IBM Linux Technology Center, fubar@us.ibm.com
next prev parent reply other threads:[~2010-06-25 22:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-25 19:50 [PATCH 2.6.35] bonding: prevent netpoll over bonded interfaces Andy Gospodarek
2010-06-25 22:31 ` Andi Kleen
2010-06-25 22:52 ` Jay Vosburgh [this message]
2010-06-29 6:54 ` 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=22059.1277506348@death.nxdomain.ibm.com \
--to=fubar@us.ibm.com \
--cc=amwang@redhat.com \
--cc=andi@firstfloor.org \
--cc=andy@greyhouse.net \
--cc=netdev@vger.kernel.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 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).