Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753975AbbGIQtj (ORCPT ); Thu, 9 Jul 2015 12:49:39 -0400 Received: from www.linutronix.de ([62.245.132.108]:42995 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753269AbbGIQtd (ORCPT ); Thu, 9 Jul 2015 12:49:33 -0400 Date: Thu, 9 Jul 2015 18:49:21 +0200 (CEST) From: Thomas Gleixner To: Jean Tourrilhes cc: Rusty Russell , linux-kernel@vger.kernel.org Subject: Re: [PATCH] kthread: export park/unpark facility In-Reply-To: <20150709162017.GB24426@hpl.hp.com> Message-ID: References: <20150709004020.GA21087@hpl.hp.com> <20150709162017.GB24426@hpl.hp.com> 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,URIBL_BLOCKED=0.001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 948 Lines: 27 On Thu, 9 Jul 2015, Jean Tourrilhes wrote: > On Thu, Jul 09, 2015 at 10:05:02AM +0200, Thomas Gleixner wrote: > > > > > This patch should definitely help most modules. > > > > And how exactly would this help modules? > > Putting kthread to sleep and waking them up later is slightly > tricky : > http://www.linuxjournal.com/article/8144 > > The park and unpark API encapsulate this functionality in > a pretty nice and clean API, and avoid duplicating this code in > various modules. I'm all for sharing the joy ;-) If you can come up with a proper use case, i.e. patch for a module, then we can certainly talk about the exports. But without a user it does not make any sense. 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/