Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753315AbbDGTRN (ORCPT ); Tue, 7 Apr 2015 15:17:13 -0400 Received: from www.linutronix.de ([62.245.132.108]:39799 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750862AbbDGTRL (ORCPT ); Tue, 7 Apr 2015 15:17:11 -0400 Date: Tue, 7 Apr 2015 21:17:18 +0200 (CEST) From: Thomas Gleixner To: Jason Low cc: Peter Zijlstra , Mike Galbraith , Thavatchai Makphaibulchoke , Steven Rostedt , LKML , Ingo Molnar , linux-rt-users Subject: Re: [PATCH v2 1/2] rtmutex Real-Time Linux: Fixing kernel BUG at kernel/locking/rtmutex.c:997! In-Reply-To: Message-ID: References: <1424395866-81589-1-git-send-email-tmac@hp.com> <1428369962-74723-1-git-send-email-tmac@hp.com> <1428369962-74723-2-git-send-email-tmac@hp.com> <1428407236.3152.81.camel@gmail.com> <20150407120403.GN21418@twins.programming.kicks-ass.net> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 938 Lines: 30 On Tue, 7 Apr 2015, Jason Low wrote: > The lock shouldn't be used in get_next_timer_interrupt() either right? > > unsigned long get_next_timer_interrupt(unsigned long now) > { > ... > > #ifdef CONFIG_PREEMPT_RT_FULL > /* > * On PREEMPT_RT we cannot sleep here. If the trylock does not > * succeed then we return the worst-case 'expires in 1 tick' > * value. We use the rt functions here directly to avoid a > * migrate_disable() call. > */ > if (!spin_do_trylock(&base->lock)) > return now + 1; > #else And how do you protect the walk of the timer wheel against a concurrent insertion/removal? Thanks, tglx -- 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/