Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752080AbbBKGgA (ORCPT ); Wed, 11 Feb 2015 01:36:00 -0500 Received: from ozlabs.org ([103.22.144.67]:49480 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750906AbbBKGf6 (ORCPT ); Wed, 11 Feb 2015 01:35:58 -0500 From: Rusty Russell To: Dave Jones , Peter Zijlstra Cc: Linux Kernel Subject: Re: [PATCH] module: Annotate nested sleep in resolve_symbol() In-Reply-To: <20150210175051.GA8288@codemonkey.org.uk> References: <20150210164217.GA5547@codemonkey.org.uk> <20150210170604.GA21418@twins.programming.kicks-ass.net> <20150210171255.GQ24151@twins.programming.kicks-ass.net> <20150210175051.GA8288@codemonkey.org.uk> User-Agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) Date: Wed, 11 Feb 2015 10:18:34 +1030 Message-ID: <8761b9coq5.fsf@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1177 Lines: 33 Dave Jones writes: > On Tue, Feb 10, 2015 at 06:12:55PM +0100, Peter Zijlstra wrote: > > On which, we should probably do this. > > > > --- > > Subject: module: Replace over-engineered nested sleep > > > > Since the introduction of the nested sleep warning; we've established > > that the occasional sleep inside a wait_event() is fine. > > > > wait_event() loops are invariant wrt. spurious wakeups, and the > > occasional sleep has a similar effect on them. As long as its occasional > > its harmless. > > > > Therefore replace the 'correct' but verbose wait_woken() thing with > > a simple annotation to shut up the warning. > > > > Cc: Rusty Russell > > Signed-off-by: Peter Zijlstra (Intel) > > Seems to suppress the warning, and modules still work. > > Tested-by: Dave Jones OK, applied. Thanks! Rusty. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/