From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Holler Subject: Re: [PATCH v7 2/2] ARM hibernation / suspend-to-disk Date: Wed, 26 Mar 2014 01:00:14 +0100 Message-ID: <5332188E.7050302@ahsoftware.de> References: <1394016605-24120-1-git-send-email-sebastian.capella@linaro.org> <1394016605-24120-3-git-send-email-sebastian.capella@linaro.org> <20140316070917.GA3094@arch.cereza> <20140317204410.GA1118@arch.cereza> <20140319154434.GA3488@arch.cereza> <5331CD43.1010601@ahsoftware.de> <53321311.8060604@ahsoftware.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53321311.8060604@ahsoftware.de> Sender: linux-kernel-owner@vger.kernel.org To: Sebastian Capella , Ezequiel Garcia Cc: Stefano Stabellini , Len Brown , "linaro-kernel@lists.linaro.org" , Russell King , Jonathan Austin , "linux-pm@vger.kernel.org" , "Rafael J. Wysocki" , Victor Kamensky , Will Deacon , Linux Kernel , Sricharan R , Santosh Shilimkar , Ben Dooks , Russ Dill , Nicolas Pitre , =?UTF-8?B?VXdlIEtsZWluZS1Lw7ZuaWc=?= , Laura Abbott , Catalin Marinas , Stephen Boyd "linux-arm-kernel@lists.infradead.org" List-Id: linux-pm@vger.kernel.org Am 26.03.2014 00:36, schrieb Alexander Holler: > Am 25.03.2014 19:38, schrieb Alexander Holler: > >> reboot too. Another solution would be to unregister the reboot_notifier >> in the reboot_nofifier itself. I've just seen one watchdog driver >> (drivers/rtc/rtc-m41t80.c) which does that. But I still think such > > That, btw. is broken. ;) > > Right after having send the mail, I've became that intuition, had a look > and ... notifier.h does state the following: > > * atomic_notifier_chain_unregister(), > blocking_notifier_chain_unregister(), > * and srcu_notifier_chain_unregister() _must not_ be called from within > * the call chain. > > (The reboot-notifier chain is of type blocking_notifier_chain) > > So I've picked up one user of reboot_notifier by random and had the luck > to choose a broken one. ;) > > I will make a patch and will have a look if the same failure can be > found elsewhere. There aren't that much users of the reboot-notifier, so > it shouldn't cost me that much time. Hmm, and either I was confused, or have looked at some other user of the reboot_notifier, but rtc-m41t80.c doesn't call unregister from it's notifier. And unfortunately there are a bit more users of the reboot_notifier than I first thought. :/ I will check if I can find out at least at which driver I had a look at which did call unregister_notifier from the notifier itself. Regards, Alexander Holler