Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261666AbVEPOSj (ORCPT ); Mon, 16 May 2005 10:18:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261662AbVEPOSj (ORCPT ); Mon, 16 May 2005 10:18:39 -0400 Received: from stat16.steeleye.com ([209.192.50.48]:12716 "EHLO hancock.sc.steeleye.com") by vger.kernel.org with ESMTP id S261659AbVEPOS2 (ORCPT ); Mon, 16 May 2005 10:18:28 -0400 Subject: Re: [PATCH 2.6.12-rc4-mm1 3/4] megaraid_sas: updating the driver From: James Bottomley To: Arjan van de Ven Cc: "Bagalkote, Sreenivas" , "'linux-scsi@vger.kernel.org'" , "'linux-kernel@vger.kernel.org'" , "'Matt_Domsch@Dell.com'" , Andrew Morton , "'Christoph Hellwig'" In-Reply-To: <1116230776.6274.20.camel@laptopd505.fenrus.org> References: <0E3FA95632D6D047BA649F95DAB60E57060CCE7C@exa-atlanta> <1116230776.6274.20.camel@laptopd505.fenrus.org> Content-Type: text/plain Date: Mon, 16 May 2005 09:18:03 -0500 Message-Id: <1116253084.5040.1.camel@mulgrave> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-4) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 611 Lines: 18 On Mon, 2005-05-16 at 10:06 +0200, Arjan van de Ven wrote: > > + spin_lock( instance->host_lock ); > > + cmd->scmd->scsi_done( cmd->scmd ); > > + spin_unlock( instance->host_lock ); > > are you really sure you don't want to use spin_lock_irqsave() here ? Actually, don't bother with the lock at all. scsi_done() is designed to be called locklessly. James - 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/