From: "Randy.Dunlap" Subject: Re: [PATCH] BusLogic: add error handling, fix queuecommand, docs. Date: Thu, 2 Oct 2003 13:48:34 -0700 Sender: linux-scsi-owner@vger.kernel.org Message-ID: <20031002134834.76911a14.rddunlap@osdl.org> References: <20031001122316.6f33af9b.rddunlap@osdl.org> <20031001214818.GB1045@beaverton.ibm.com> <20031001144324.60097c36.rddunlap@osdl.org> <20031001173750.68a2c6a5.rddunlap@osdl.org> <1065126868.3839.453.camel@compaq.xsintricity.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from fw.osdl.org ([65.172.181.6]:47801 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S263480AbTJBU5g (ORCPT ); Thu, 2 Oct 2003 16:57:36 -0400 In-Reply-To: <1065126868.3839.453.camel@compaq.xsintricity.com> List-Id: linux-scsi@vger.kernel.org To: Doug Ledford Cc: andmike@us.ibm.com, linux-scsi@vger.kernel.org On Thu, 02 Oct 2003 16:34:28 -0400 Doug Ledford wrote: | On Wed, 2003-10-01 at 20:37, Randy.Dunlap wrote: | > Here's the updated patch... | > | > More comments? | | Yes! | | | > @@ -3513,7 +3525,7 @@ int BusLogic_QueueCommand(SCSI_Command_T | > { | > Command->result = DID_ERROR << 16; | > CompletionRoutine(Command); | > - return 0; | > + return 1; | > } | > } | > /* | | Oops, now you're both completing the command and causing the scsi mid | layer to put it on the MLQUEUE. Bad juju mikey! Either complete the | command or return 1, but don't do both! | | > @@ -3679,6 +3691,7 @@ int BusLogic_QueueCommand(SCSI_Command_T | > BusLogic_DeallocateCCB(CCB); | > Command->result = DID_ERROR << 16; | > Command->scsi_done(Command); | > + return 1; | > } | > } | > } | | Same. Doug, thanks for looking and correcting me. I'll fix those & repost it. Meanwhile, the driver has already been tested & used succesfully by one user: -- ~Randy