From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754003AbcFHAgH (ORCPT ); Tue, 7 Jun 2016 20:36:07 -0400 Received: from cloudserver094114.home.net.pl ([79.96.170.134]:46692 "HELO cloudserver094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1750881AbcFHAgE (ORCPT ); Tue, 7 Jun 2016 20:36:04 -0400 From: "Rafael J. Wysocki" To: Lianwei Wang Cc: "Rafael J. Wysocki" , Thomas Gleixner , Peter Zijlstra , Ingo Molnar , Oleg Nesterov , Linux Kernel Mailing List , "linux-pm@vger.kernel.org" Subject: Re: [PATCH v1] PM / sleep: make pm notifier called symmetrically Date: Wed, 08 Jun 2016 02:40:04 +0200 Message-ID: <4137764.SdaSPLogrJ@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/4.5.0-rc1+; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <1463551630-9930-1-git-send-email-lianwei.wang@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday, June 06, 2016 10:41:25 PM Lianwei Wang wrote: > On Wed, May 18, 2016 at 11:06 PM, Lianwei Wang wrote: > > On Wed, May 18, 2016 at 1:34 PM, Rafael J. Wysocki wrote: > >> On Wed, May 18, 2016 at 8:07 AM, Lianwei Wang wrote: > >>> This makes pm notifier PREPARE/POST symmetrical: if PREPARE > >>> fails, we will only undo what ever happened on PREPARE. > >>> > >>> It fixes the unbalanced cpu hotplug enable in cpu pm notifier. > >> > >> Can you please describe the problem you're trying to address in a bit > >> more detail? > > > > It is described in another patch, and it is a common issue. I fixed > > the similar issue several times, all because that the CPU_POST_SUSPEND > > notifier callback is called without call CPU_SUSPEND_PREPARE notifier > > callback before. Something is DO in PM_XXX_PREPARE and UNDO in > > POST_XXX. If we don't DO it in XXX_PREPARE then we don't need to UNDO > > it in PM_POST_XXX. > > > > Here is the link for the unbalanced cpu hotplug enable case: > > https://lkml.org/lkml/2016/5/6/61 . > > > > Thanks, > > Lianwei > > Did anyone from the maintainer review the patch yet? Yes, I have reviewed it, but not yet decided whether or not I will accept it. Thanks, Rafael