Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752612Ab2FLJTP (ORCPT ); Tue, 12 Jun 2012 05:19:15 -0400 Received: from ozlabs.org ([203.10.76.45]:52318 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752103Ab2FLJTM (ORCPT ); Tue, 12 Jun 2012 05:19:12 -0400 From: Rusty Russell To: Thomas Gleixner Cc: Peter Zijlstra , Fenghua Yu , Ingo Molnar , H Peter Anvin , Suresh B Siddha , Tony Luck , Asit K Mallick , Arjan Dan De Ven , linux-kernel , x86 , linux-pm , "Srivatsa S. Bhat" Subject: Re: [PATCH] kthread: Implement park/unpark facility In-Reply-To: References: <1338833876-29721-1-git-send-email-fenghua.yu@intel.com> <1338842001.28282.135.camel@twins> <87zk8iioam.fsf@rustcorp.com.au> <878vfviv1h.fsf@rustcorp.com.au> User-Agent: Notmuch/0.12 (http://notmuchmail.org) Emacs/23.3.1 (i686-pc-linux-gnu) Date: Tue, 12 Jun 2012 09:53:42 +0930 Message-ID: <873961pecx.fsf@rustcorp.com.au> 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: 642 Lines: 16 On Mon, 11 Jun 2012 11:26:12 +0200 (CEST), Thomas Gleixner wrote: > Makes sense. Will have a go on that. > > One other thing what I'm thinking about is to avoid the synchronous > parking mechanism, i.e. just tell the thread to park and check the > park state later before going further down. Yes, definitely a nice optimization, and should be pretty simple. 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/