Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754610AbYJCBAi (ORCPT ); Thu, 2 Oct 2008 21:00:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753960AbYJCBA1 (ORCPT ); Thu, 2 Oct 2008 21:00:27 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:49541 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753906AbYJCBA0 (ORCPT ); Thu, 2 Oct 2008 21:00:26 -0400 Date: Thu, 2 Oct 2008 18:00:11 -0700 From: Andrew Morton To: Divy Le Ray Cc: jeff@garzik.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, swise@opengridcomputing.com Subject: Re: [PATCH 2.6.28 1/1] cxgb3 - fix race in EEH Message-Id: <20081002180011.16254a4e.akpm@linux-foundation.org> In-Reply-To: <20080926000528.11959.63712.stgit@speedy5> References: <20080926000528.11959.63712.stgit@speedy5> X-Mailer: Sylpheed version 2.2.4 (GTK+ 2.8.20; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1059 Lines: 30 On Thu, 25 Sep 2008 17:05:28 -0700 Divy Le Ray wrote: > A SGE queue set timer might access registers while in EEH recovery, > triggering an EEH error loop. Stop all timers early in EEH process. It's deeply weird that t3_reset_qset() does memset(&q->tx_reclaim_timer, 0, sizeof(q->tx_reclaim_timer)); There are lots of things in the timer_list which the driver has no business modifying. For example, this might break the metadata in Thomas's debugobjects stuff, which attempts to catch things being done in the wrong order (I don't think it will, but still...). Rerunning init_timer() should repair the damage, but I suspect a simple q->tx_reclaim_timer.function = NULL; /* explanation goes here */ would suffice here. t3_sge_alloc_qset() could use the newer setup_timer(). -- 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/