From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757550AbZE2I5S (ORCPT ); Fri, 29 May 2009 04:57:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757611AbZE2I4x (ORCPT ); Fri, 29 May 2009 04:56:53 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:36756 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757528AbZE2I4w (ORCPT ); Fri, 29 May 2009 04:56:52 -0400 Date: Fri, 29 May 2009 01:56:52 -0700 (PDT) Message-Id: <20090529.015652.89167404.davem@davemloft.net> To: divy@chelsio.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, swise@opengridcomputing.com Subject: Re: [PATCH 2.6.30 2/2] cxgb3: link fault fixes From: David Miller In-Reply-To: <20090528212308.28184.39504.stgit@speedy5> References: <20090528212308.28184.39504.stgit@speedy5> X-Mailer: Mew version 6.2.51 on Emacs 22.1 / Mule 5.0 (SAKAKI) 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 From: Divy Le Ray Date: Thu, 28 May 2009 14:23:08 -0700 > From: Divy Le Ray > > Do not call t3_link_fault() under spinlock, as it calls msleep(). > Besides, only the access to pi->link_fault needs to be serialized. > > Also initialize local variables before checking the link status, > link state fields might otherwise end up containing garbage. > > Signed-off-by: Divy Le Ray Applied.