Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753482AbbHETuP (ORCPT ); Wed, 5 Aug 2015 15:50:15 -0400 Received: from g9t5008.houston.hp.com ([15.240.92.66]:41454 "EHLO g9t5008.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753103AbbHETuN (ORCPT ); Wed, 5 Aug 2015 15:50:13 -0400 Message-ID: <1438803881.4833.34.camel@j-VirtualBox> Subject: Re: [RFC PATCH] timer: Improve itimers scalability From: Jason Low To: Peter Zijlstra Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Frederic Weisbecker , Oleg Nesterov , "Paul E. McKenney" , Davidlohr Bueso , Mike Galbraith , terry.rudd@hp.com, Rik van Riel , Waiman Long , Scott J Norton , jason.low2@hp.com Date: Wed, 05 Aug 2015 12:44:41 -0700 In-Reply-To: <20150805093719.GV25159@twins.programming.kicks-ass.net> References: <1438734584.2927.15.camel@j-VirtualBox> <20150805093719.GV25159@twins.programming.kicks-ass.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 915 Lines: 26 On Wed, 2015-08-05 at 11:37 +0200, Peter Zijlstra wrote: > On Tue, Aug 04, 2015 at 05:29:44PM -0700, Jason Low wrote: > > > @@ -1137,6 +1148,13 @@ static inline int fastpath_timer_check(struct task_struct *tsk) > > if (READ_ONCE(sig->cputimer.running)) { > > Maybe make that: > > if (READ_ONCE(sig->cputimer.running) && > !READ_ONCE(sig->cputimer.is_checking_timer)) { Yes, I think it would be better if the check is done here. And perhaps the comment can be modified to: /* * Check if thread group timers expired. This is skipped if the cputimer * is not running or if another thread in the group is already checking * for thread group cputimers. */ -- 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/