Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753773AbbEHPZV (ORCPT ); Fri, 8 May 2015 11:25:21 -0400 Received: from mail-qk0-f174.google.com ([209.85.220.174]:33863 "EHLO mail-qk0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752970AbbEHPZR (ORCPT ); Fri, 8 May 2015 11:25:17 -0400 Date: Fri, 8 May 2015 11:25:13 -0400 From: Tejun Heo To: Kyungmin Park Cc: linux-mm , Andrew Morton , "\\Rafael J. Wysocki\\" , David Rientjes , Johannes Weiner , Oleg Nesterov , Cong Wang , LKML , Linux PM list Subject: Re: [RFC PATCH] PM, freezer: Don't thaw when it's intended frozen processes Message-ID: <20150508152513.GB28439@htj.duckdns.org> References: <20150507064557.GA26928@july> <20150507154212.GA12245@htj.duckdns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1505 Lines: 36 Hello, Kyungmin. On Fri, May 08, 2015 at 09:04:26AM +0900, Kyungmin Park wrote: > > I need to think more about it but as an *optimization* we can add > > freezing() test before actually waking tasks up during resume, but can > > you please clarify what you're seeing? > > The mobile application has life cycle and one of them is 'suspend' > state. it's different from 'pause' or 'background'. > if there are some application and enter go 'suspend' state. all > behaviors are stopped and can't do anything. right it's suspended. but > after system suspend & resume, these application is thawed and > running. even though system know it's suspended. > > We made some test application, print out some message within infinite > loop. when it goes 'suspend' state. nothing is print out. but after > system suspend & resume, it prints out again. that's not desired > behavior. and want to address it. > > frozen user processes should be remained as frozen while system > suspend & resume. Yes, they should and I'm not sure why what you're saying is happening because freezing() test done from the frozen tasks themselves should keep them in the freezer. Which kernel version did you test? Can you please verify it against a recent kernel? Thanks. -- tejun -- 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/