From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030313Ab3LTOXj (ORCPT ); Fri, 20 Dec 2013 09:23:39 -0500 Received: from mail-qc0-f170.google.com ([209.85.216.170]:40650 "EHLO mail-qc0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030242Ab3LTOXZ (ORCPT ); Fri, 20 Dec 2013 09:23:25 -0500 Date: Fri, 20 Dec 2013 09:23:21 -0500 From: Tejun Heo To: "Rafael J. Wysocki" Cc: Nigel Cunningham , "Rafael J. Wysocki" , Jens Axboe , tomaz.solc@tablix.org, aaron.lu@intel.com, linux-kernel@vger.kernel.org, Oleg Nesterov , Greg Kroah-Hartman , Fengguang Wu , Lai Jiangshan , David Howells Subject: Re: [PATCH wq/for-3.14 2/2] workqueue: implement @drain for workqueue_set_max_active() Message-ID: <20131220142321.GC4298@htj.dyndns.org> References: <20131213174932.GA27070@htj.dyndns.org> <2641617.ixtfWHNgaa@vostro.rjw.lan> <20131220133220.GB4298@htj.dyndns.org> <1811935.VrHgpxyl42@vostro.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1811935.VrHgpxyl42@vostro.rjw.lan> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 20, 2013 at 02:56:09PM +0100, Rafael J. Wysocki wrote: > On Friday, December 20, 2013 08:32:20 AM Tejun Heo wrote: > > Hello, Rafael. > > > > On Fri, Dec 20, 2013 at 02:31:37AM +0100, Rafael J. Wysocki wrote: > > > > If this looks good to you, I'll commit it to wq/for-3.14 and we can at > > > > least start to clean up things. > > > > > > Yes, it does. > > > > > > So with that I need to do workqueue_set_max_active(wq, WQ_FROZEN_ACTIVE) during > > > suspend and then workqueue_set_max_active(wq, WQ_DFL_ACTIVE) during resume on > > > my workqueue, right? > > > > Yeah, you can also do workqueue_set_max_active(wq, 0) during resume to > > restore the default value, which is what's used by alloc_workqueue() > > anyway. Oops, it sould be obvious but just in case. The call to use during suspend is workqueue_set_max_active(wq, WQ_FROZEN_ACTIVE, true). :) -- tejun