Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759392Ab3D3Hvc (ORCPT ); Tue, 30 Apr 2013 03:51:32 -0400 Received: from ja.ssi.bg ([178.16.129.10]:39252 "EHLO ja.ssi.bg" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1759032Ab3D3Hva (ORCPT ); Tue, 30 Apr 2013 03:51:30 -0400 Date: Tue, 30 Apr 2013 10:52:38 +0300 (EEST) From: Julian Anastasov To: Simon Horman cc: Eric Dumazet , Ingo Molnar , Peter Zijlstra , "Paul E. McKenney" , lvs-devel@vger.kernel.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Pablo Neira Ayuso , Dipankar Sarma Subject: Re: [PATCH v2 1/2] sched: Add cond_resched_rcu_lock() helper In-Reply-To: <20130430072944.GA13959@verge.net.au> Message-ID: References: <1367290378-29224-1-git-send-email-horms@verge.net.au> <1367290378-29224-2-git-send-email-horms@verge.net.au> <20130430072944.GA13959@verge.net.au> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 689 Lines: 31 Hello, On Tue, 30 Apr 2013, Simon Horman wrote: > > > +static void inline cond_resched_rcu_lock(void) > > > +{ > > > + if (need_resched()) { > > > > Ops, it should be without above need_resched. > > Thanks, to clarify, just this: > > static void inline cond_resched_rcu_lock(void) > { > rcu_read_unlock(); > #ifndef CONFIG_PREEMPT_RCU > cond_resched(); > #endif > rcu_read_lock(); > } Yes, thanks! -- Julian Anastasov -- 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/