Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 10 Nov 2002 09:07:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 10 Nov 2002 09:07:10 -0500 Received: from pc1-cwma1-5-cust42.swa.cable.ntl.com ([80.5.120.42]:25248 "EHLO irongate.swansea.linux.org.uk") by vger.kernel.org with ESMTP id ; Sun, 10 Nov 2002 09:07:09 -0500 Subject: Re: [PATCH] NCR53C9x ESP: C99 designated initializers From: Alan Cox To: Geert Uytterhoeven Cc: Christoph Hellwig , Linus Torvalds , Linux Kernel Development In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) Date: 10 Nov 2002 14:38:00 +0000 Message-Id: <1036939080.1005.10.camel@irongate.swansea.linux.org.uk> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 732 Lines: 23 On Sun, 2002-11-10 at 10:27, Geert Uytterhoeven wrote: ut soft reset. > */ > -int esp_reset(Scsi_Cmnd *SCptr, unsigned int how) > +int esp_reset(Scsi_Cmnd *SCptr) > { > struct NCR_ESP *esp = (struct NCR_ESP *) SCptr->host->hostdata; > > (void) esp_do_resetbus(esp, esp->eregs); > - return SCSI_RESET_PENDING; > + wait_event(esp->reset_queue, (esp->resetting_bus == 0)); > + > + return SUCCESS; > } Reset is called with the lock held surely. How can the wait_event be right ? - 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/