From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2993143AbWJURzU (ORCPT ); Sat, 21 Oct 2006 13:55:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1423375AbWJURzT (ORCPT ); Sat, 21 Oct 2006 13:55:19 -0400 Received: from mga09.intel.com ([134.134.136.24]:56244 "EHLO mga09.intel.com") by vger.kernel.org with ESMTP id S2993143AbWJURzS (ORCPT ); Sat, 21 Oct 2006 13:55:18 -0400 X-ExtLoop1: 1 X-IronPort-AV: i="4.09,338,1157353200"; d="scan'208"; a="148608848:sNHT20486382" Message-ID: <453A5EBA.5050701@intel.com> Date: Sat, 21 Oct 2006 10:54:02 -0700 From: Auke Kok User-Agent: Mail/News 1.5.0.7 (X11/20060918) MIME-Version: 1.0 To: Damien Wyart CC: Daniel Walker , Andrew Morton , Jeff Garzik , linux-kernel@vger.kernel.org, Jesse Brandeburg , NetDev Subject: Re: [PATCH] e100_shutdown: netif_poll_disable hang References: <20061020182820.978932000@mvista.com> <453936E0.1010204@intel.com> <45393B0B.8090301@intel.com> <87slhh1s90.fsf@brouette.noos.fr> In-Reply-To: <87slhh1s90.fsf@brouette.noos.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Damien Wyart wrote: >>>> My machine annoyingly hangs while rebooting. I tracked it down to >>>> e100-fix-reboot-f-with-netconsole-enabled.patch in 2.6.18-rc2-mm2 >>>> I review the changes and it seemed to be calling >>>> netif_poll_disable one too many time. Once in e100_down(), and >>>> again in e100_shutdown(). >>>> The second one in e100_shutdown() caused the hang. So this patch >>>> removes it. > > * Auke Kok [061020 23:09]: >> it doesn't even do harm to netif_poll_disable() twice as far as I can >> see, as it merely calls test_and_set_bit(), which will instantly >> succeed on the first attempt if the bit was already set. > >> did this change actually fix it for you? I'm wondering if the >> netif_carrier_off might not be the culprit here... > > I can confirm the proposed original change of D. Walker fixed the > problem for me. I did not test the change you proposed as a followup. his change breaks something else (a reboot with netconsole, possibly suspend). Please give the latest version I sent a try. Daniel confirmed me that it works, but it's always nice to hear it from more people. Thanks Auke