Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758745Ab0D3Ra1 (ORCPT ); Fri, 30 Apr 2010 13:30:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14775 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932952Ab0D3R3y (ORCPT ); Fri, 30 Apr 2010 13:29:54 -0400 Date: Fri, 30 Apr 2010 19:26:18 +0200 From: Oleg Nesterov To: Tejun Heo Cc: "Rafael J. Wysocki" , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , linux-pm@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Alan Stern , Len Brown , Pavel Machek , Randy Dunlap , Jesse Barnes , Magnus Damm , Nigel Cunningham , Cornelia Huck , Ming Lei , Wu Fengguang , Andrew Morton , Maxim Levitsky , linux-doc@vger.kernel.org Subject: Re: [PATCH 1/8] PM: Add suspend block api. Message-ID: <20100430172618.GA9043@redhat.com> References: <1272429119-12103-1-git-send-email-arve@android.com> <201004282250.44200.rjw@sisk.pl> <201004292316.14524.rjw@sisk.pl> <4BDA5B8B.50004@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BDA5B8B.50004@kernel.org> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1057 Lines: 26 On 04/30, Tejun Heo wrote: > > On 04/29/2010 11:16 PM, Rafael J. Wysocki wrote: > >>> Also, we already have one PM workqueue. It is used for runtime PM, but I guess > >>> it may be used just as well for the opportunistic suspend. It is freezable, > >>> but would it hurt? > >> > > Freezable workqueues have to be singlethread or else there will be unfixable > > races, so you can safely assume things will stay as they are in this respect. > > Rafael, can you elaborate a bit more on this? Just in case I missed > something while doing cmwq as it currently doesn't have such limit. Currently _cpu_down() can't flush and/or stop the frozen cwq->thread. IIRC this is fixable, but needs the nasty complications. We should thaw + stop the frozen cwq->thread, then move the pending works to another CPU. Oleg. -- 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/