From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751866AbcD1GRH (ORCPT ); Thu, 28 Apr 2016 02:17:07 -0400 Received: from www.linutronix.de ([62.245.132.108]:55908 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750847AbcD1GRF (ORCPT ); Thu, 28 Apr 2016 02:17:05 -0400 Date: Thu, 28 Apr 2016 08:15:22 +0200 (CEST) From: Thomas Gleixner To: Lianwei Wang cc: Peter Zijlstra , oleg@redhat.com, Ingo Molnar , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH] cpu/hotplug: handle unbalanced hotplug enable/disable In-Reply-To: Message-ID: References: <1461214567-3356-1-git-send-email-lianwei.wang@gmail.com> <20160421105042.GI3408@twins.programming.kicks-ass.net> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 27 Apr 2016, Lianwei Wang wrote: > Yes. In our project, there is a kernel driver which register a pm > notifier. On some conditions this pm notifier will return an error and > abort the suspend process. The counter will be unbalanced in case it > happened. So what? You wreckaged your driver, so you fix it and be done with it.