From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH] netdev: Fix sleeping inside wait event Date: Wed, 29 Oct 2014 18:13:45 +0100 Message-ID: <20141029171345.GO12706@worktop.programming.kicks-ass.net> References: <20141028142541.GA19097@wfg-t540p.sh.intel.com> <20141029161657.GF3337@twins.programming.kicks-ass.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Fengguang Wu , LKP , LKML , "oleg@redhat.com" , "Eric W. Biederman" , David Miller , Linux Kernel Network Developers To: Cong Wang Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Wed, Oct 29, 2014 at 09:29:55AM -0700, Cong Wang wrote: > (Adding netdev@...) > > On Wed, Oct 29, 2014 at 9:16 AM, Peter Zijlstra wrote: > > > > Dave, this relies on bits currently in tip/sched/core, if you're ok I'll > > merge it through that tree. > > > > --- > > Subject: netdev: Fix sleeping inside wait event > > From: Peter Zijlstra > > Date: Wed Oct 29 17:04:56 CET 2014 > > > > rtnl_lock_unregistering() takes rtnl_lock() -- a mutex -- inside a > > wait loop. The wait loop relies on current->state to function, but so > > does mutex_lock(), nesting them makes for the inner to destroy the > > outer state. > > > > While you are on it, please fix rtnl_lock_unregistering_all() too? Ah, that's hidden someplace else, sure I can do that. Thanks for pointing it out.