Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937475Ab3DIKLj (ORCPT ); Tue, 9 Apr 2013 06:11:39 -0400 Received: from mail-oa0-f49.google.com ([209.85.219.49]:35774 "EHLO mail-oa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754582Ab3DIKLh (ORCPT ); Tue, 9 Apr 2013 06:11:37 -0400 MIME-Version: 1.0 In-Reply-To: References: <91239cde99aaba2715f63db1f88241d9f4a36e13.1364740180.git.viresh.kumar@linaro.org> <20130331181931.GA7533@htj.dyndns.org> Date: Tue, 9 Apr 2013 15:41:37 +0530 Message-ID: Subject: Re: [PATCH V4 3/4] block: queue work on unbound wq From: Viresh Kumar To: Amit Kucheria Cc: Tejun Heo , Jens Axboe , Robin Randhawa , linux-rt-users@vger.kernel.org, Patch Tracking , Peter Zijlstra , Liviu Dudau , linux-kernel@vger.kernel.org, Steven Rostedt , Lists linaro-kernel , Steve Bannister , airlied@redhat.com, Arvind Chauhan , mingo@redhat.com, davem@davemloft.net, Charles Garcia-Tobin Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1055 Lines: 20 On 9 April 2013 15:28, Amit Kucheria wrote: > On Tue, Apr 9, 2013 at 3:25 PM, Viresh Kumar wrote: >> But how will we know if the user of wq wants to save power or not? He must >> give some flag which is only used when power saving is enabled. We can't >> set WQ_UNBOUND for all wqs. > > You have the Kconfig option + the module param for that. You don't need a flag. I still don't agree.. Suppose there are three users A, B and C. A wants to use WQ_UNBOUND when POWER_EFFICIENT Kconfig option and module param is enabled. And B always want to enable WQ_UNBOUND and C doesn't want to set WQ_UNBOUND at all.. Now, how will each of these behave differently based on module param settings. B and C are quite clear but A needs a flag for indicating its usage. -- 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/