From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qc0-f171.google.com (mail-qc0-f171.google.com [209.85.216.171]) by kanga.kvack.org (Postfix) with ESMTP id D90EF6B0032 for ; Fri, 8 May 2015 11:25:17 -0400 (EDT) Received: by qcyk17 with SMTP id k17so38746295qcy.1 for ; Fri, 08 May 2015 08:25:17 -0700 (PDT) Received: from mail-qk0-x230.google.com (mail-qk0-x230.google.com. [2607:f8b0:400d:c09::230]) by mx.google.com with ESMTPS id 4si5601998qgy.56.2015.05.08.08.25.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 May 2015 08:25:17 -0700 (PDT) Received: by qkhg7 with SMTP id g7so50150755qkh.2 for ; Fri, 08 May 2015 08:25:17 -0700 (PDT) Date: Fri, 8 May 2015 11:25:13 -0400 From: Tejun Heo 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: Sender: owner-linux-mm@kvack.org List-ID: To: Kyungmin Park Cc: linux-mm , Andrew Morton , "\\Rafael J. Wysocki\\" , David Rientjes , Johannes Weiner , Oleg Nesterov , Cong Wang , LKML , Linux PM list 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org