From: Dave Jones Subject: Re: bond: take rcu lock in bond_poll_controller Date: Fri, 28 Sep 2018 13:25:56 -0400 Message-ID: <20180928172556.arqk7ntmnz6lhb6d@codemonkey.org.uk> References: <20180924192317.wghbs34ld7klqpi6@codemonkey.org.uk> <20180926.201541.2129538853102457012.davem@davemloft.net> <20180928161631.3pab3m2k6zvoemnz@codemonkey.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Linux Kernel Network Developers To: Cong Wang Return-path: Received: from scorn.kernelslacker.org ([45.56.101.199]:46130 "EHLO scorn.kernelslacker.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbeI1Xun (ORCPT ); Fri, 28 Sep 2018 19:50:43 -0400 Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Fri, Sep 28, 2018 at 09:55:52AM -0700, Cong Wang wrote: > On Fri, Sep 28, 2018 at 9:18 AM Dave Jones wrote: > > > > Callers of bond_for_each_slave_rcu are expected to hold the rcu lock, > > otherwise a trace like below is shown > > So why not take rcu read lock in netpoll_send_skb_on_dev() where > RCU is also assumed? that does seem to solve the backtrace spew I saw too, so if that's preferable I can respin the patch. > As I said, I can't explain why you didn't trigger the RCU warning in > netpoll_send_skb_on_dev()... netpoll_send_skb_on_dev takes the rcu lock itself. Dave