Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752954AbbEGGoh (ORCPT ); Thu, 7 May 2015 02:44:37 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:42413 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750986AbbEGGoe (ORCPT ); Thu, 7 May 2015 02:44:34 -0400 X-AuditID: cbfee61a-f79516d000006302-2b-554b09cfb411 Date: Thu, 07 May 2015 15:45:57 +0900 From: Kyungmin Park To: linux-mm@kvack.org Cc: Andrew Morton , Tejun Heo , "\\\"Rafael J. Wysocki\\\"" , David Rientjes , Johannes Weiner , Oleg Nesterov , Cong Wang , LKML , linux-pm@vger.kernel.org Subject: [RFC PATCH] PM, freezer: Don't thaw when it's intended frozen processes Message-id: <20150507064557.GA26928@july> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrALMWRmVeSWpSXmKPExsVy+t9jAd0LnN6hBr1LWS3mrF/DZrF6k6/F 5V1z2CzurfnPavG59wijxdb9rYwWbUs2MlmcOX2J1eLX8qOMFqs2dDE6cHkcfvOe2WPnrLvs Hgs2lXpsWtXJ5rHp0yR2jxMzfrN4vN93lc1jy9V2Fo/Pm+QCOKO4bFJSczLLUov07RK4Mrpm VBXsZ6+4eeMxUwPjdLYuRk4OCQETiUufdzNB2GISF+6tB4pzcQgJLGKUmHTzPDuE84xR4vWG +UAOB5DjK3F0hzNIA4uAqsSszfNYQWw2AS2JKx/2sIPYIkCDPp65zAzSyyxwmUni2fN5zCAJ YYEAiY8/P4I18ApoSvz5dJoFwhaU+DH5HpjNDDRo/c7jTBC2tMSjvzPAhooKqEhMObmNbQIj /ywkLbOQtMxC0rKAkXkVo2hqQXJBcVJ6rqFecWJucWleul5yfu4mRnA8PJPawbiyweIQowAH oxIPr8BOr1Ah1sSy4srcQ4wSHMxKIrzX2LxDhXhTEiurUovy44tKc1KLDzFKc7AoifPO0ZUL FRJITyxJzU5NLUgtgskycXBKNTBGp/0zEmw9a6rXKLQkr6bBZsHsz2xn789UmPHDcNfzkikx i6asOdexe8J8tZ78u63nnPPV3bn+nNZ5c0B/pvz641z1ZyZ3Rm6vz3479dxtL/azEe0LpPTe M8xc3Go751nqtTPKQq+kNymUzmpk10y4elJL1HDCy/rW3jrBC5peuXsi3yTlzjupxFKckWio xVxUnAgAFN8d3IMCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1179 Lines: 30 From: Kyungmin Park Some platform uses freezer cgroup for speicial purpose to schedule out some applications. but after suspend & resume, these processes are thawed and running. but it's inteneded and don't need to thaw it. To avoid it, does it possible to modify resume code and don't thaw it when resume? does it resonable? Signed-off-by: Kyungmin Park --- diff --git a/kernel/power/process.c b/kernel/power/process.c index 564f786..6eed7df 100644 --- a/kernel/power/process.c +++ b/kernel/power/process.c @@ -202,7 +202,9 @@ void thaw_processes(void) for_each_process_thread(g, p) { /* No other threads should have PF_SUSPEND_TASK set */ WARN_ON((p != curr) && (p->flags & PF_SUSPEND_TASK)); - __thaw_task(p); + /* Don't need to thaw when it's already frozen by userspace */ + if (!cgroup_freezing(p)) + __thaw_task(p); } read_unlock(&tasklist_lock); -- 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/