From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH] dst: call cond_resched() in dst_gc_task() Date: Mon, 8 Feb 2010 22:35:40 -0800 Message-ID: <20100208223540.3cdabe44.akpm@linux-foundation.org> References: <1265639549.3048.33.camel@edumazet-laptop> <1265657560.4236.80.camel@edumazet-laptop> <20100208152606.91c55722.akpm@linux-foundation.org> <20100208.153406.123254133.davem@davemloft.net> <20100208153744.236158aa.akpm@linux-foundation.org> <20100208155053.4ad68484@nehalam> <1265695598.4236.95.camel@edumazet-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Stephen Hemminger , David Miller , pstaszewski@itcare.pl, netdev@vger.kernel.org To: Eric Dumazet Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:58400 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752467Ab0BIGfv (ORCPT ); Tue, 9 Feb 2010 01:35:51 -0500 In-Reply-To: <1265695598.4236.95.camel@edumazet-laptop> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, 09 Feb 2010 07:06:38 +0100 Eric Dumazet wrote: > After this patch, I believe that scheduler is allowed to migrate > dst_gc_task() to an idle cpu. No, keventd threads are each pinned to a single CPU (kthread_bind() in start_workqueue_thread()), so dst_gc_task() gets run on the CPU which ran schedule_delayed_work() and no other.