Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760971AbYBRNGw (ORCPT ); Mon, 18 Feb 2008 08:06:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761933AbYBRNGV (ORCPT ); Mon, 18 Feb 2008 08:06:21 -0500 Received: from www.balabit.hu ([212.92.18.33]:57420 "EHLO lists.balabit.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761574AbYBRNGU (ORCPT ); Mon, 18 Feb 2008 08:06:20 -0500 Message-ID: <47B982C9.60207@balabit.hu> Date: Mon, 18 Feb 2008 14:06:17 +0100 From: Laszlo Attila Toth Organization: BalaBit IT Ltd. MIME-Version: 1.0 To: David Miller , zdenek.kabelac@gmail.com CC: jkosina@suse.cz, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org Subject: Re: My system stops during startup with curretn git tree of 2.6.25-rc2 References: <20080217.183621.110686685.davem@davemloft.net> In-Reply-To: <20080217.183621.110686685.davem@davemloft.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2033 Lines: 58 David Miller wrote: > From: Jiri Kosina > Date: Sun, 17 Feb 2008 13:04:59 +0100 (CET) > >> On Sun, 17 Feb 2008, Zdenek Kabelac wrote: >> >>> It looks like there is something weird as my systems stops when the swap >>> is mounted. I've played bisection game and this is the commit which >>> makes the system unusable: >>> # bad: [45b503548210fe6f23e92b856421c2a3f05fd034] [RTNETLINK]: Send a >>> single notification on device state changes. >>> git-bisect bad 45b503548210fe6f23e92b856421c2a3f05fd034 >>> I've tried to reverse this commit - and it has compiled & worked. >> This commit is completely broken (it, for example, breaks locking around >> dev->link_mode), as has been already mentioned by Rafael at >> http://lkml.org/lkml/2008/2/15/542 >> >> Dave, do you have a proper fix queued? Otherwise I would propose just to >> revert it completely from Linus' tree for now. > > I just reverted and I'll push that to Linus. > Okay, but I can't figure out what's the problem with it. I don't have wireless card on my linux box also I can't test it but everything else works. Swap is mounted. The concurrency cannot be a problem because the write operation is protected by a lock. My only idea is the notification itself, because the netdev_state_change function is used which calls rtmsg_ifinfo too. void netdev_state_change(struct net_device *dev) { if (dev->flags & IFF_UP) { call_netdevice_notifiers(NETDEV_CHANGE, dev); rtmsg_ifinfo(RTM_NEWLINK, dev, 0); } } Also last lines of my patch could be instead of if (modified) netdev_state_change(dev); the following: if (modified && dev->flags & IFF_UP) { call_netdevice_notifiers(NETDEV_CHANGE, dev); } Regards, Attila -- 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/