From: Jay Vosburgh <jay.vosburgh@canonical.com>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org, emil.s.tantilov@intel.com,
zyjzyj2000@gmail.com, vfalico@gmail.com, dingtianhong@huawei.com,
gospo@cumulusnetworks.com
Subject: Re: [PATCH v2 net] bonding: don't use stale speed and duplex information
Date: Thu, 18 Feb 2016 12:25:52 -0800 [thread overview]
Message-ID: <17965.1455827152@famine> (raw)
In-Reply-To: <20160216.151448.1415574551982584505.davem@davemloft.net>
David Miller <davem@davemloft.net> wrote:
[...]
>> This was done historically in bonding, but the call to
>> bond_update_speed_duplex was removed in commit 876254ae2758 ("bonding:
>> don't call update_speed_duplex() under spinlocks"), as it might sleep
>> under lock. Later, the locking was changed to only hold RTNL, and so
>> after commit 876254ae2758 ("bonding: don't call update_speed_duplex()
>> under spinlocks") this call is again safe.
>>
>> Tested-by: "Tantilov, Emil S" <emil.s.tantilov@intel.com>
>> Cc: Veaceslav Falico <vfalico@gmail.com>
>> Cc: dingtianhong <dingtianhong@huawei.com>
>> Fixes: 876254ae2758 ("bonding: don't call update_speed_duplex() under spinlocks")
>> Signed-off-by: Jay Vosburgh <jay.vosburgh@canonical.com>
>
>Applied, thanks Jay.
Rereading the above, I just noticed that I put the wrong commit
into the fixes tag (and the "Later, the locking was changed" text); the
correct fixes tag should be:
Fixes: 4cb4f97b7e36 ("bonding: rebuild the lock use for bond_mii_monitor()")
Kernels between 876254ae2758 and 4cb4f97b7e36 should not have
this patch applied, as it might sleep under lock.
Sorry for the error,
-J
---
-Jay Vosburgh, jay.vosburgh@canonical.com
next prev parent reply other threads:[~2016-02-18 20:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-08 20:10 [PATCH v2 net] bonding: don't use stale speed and duplex information Jay Vosburgh
2016-02-14 2:36 ` Ding Tianhong
2016-02-16 20:14 ` David Miller
2016-02-18 20:25 ` Jay Vosburgh [this message]
2016-02-18 20:27 ` David Miller
2016-02-25 8:35 ` zhuyj
2016-02-25 13:33 ` Jay Vosburgh
2016-02-26 2:21 ` zhuyj
2016-02-29 5:39 ` Jay Vosburgh
2016-02-29 6:41 ` zhuyj
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=17965.1455827152@famine \
--to=jay.vosburgh@canonical.com \
--cc=davem@davemloft.net \
--cc=dingtianhong@huawei.com \
--cc=emil.s.tantilov@intel.com \
--cc=gospo@cumulusnetworks.com \
--cc=netdev@vger.kernel.org \
--cc=vfalico@gmail.com \
--cc=zyjzyj2000@gmail.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).