Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 11 Nov 2002 04:25:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 11 Nov 2002 04:25:29 -0500 Received: from mail2.sonytel.be ([195.0.45.172]:10650 "EHLO mail.sonytel.be") by vger.kernel.org with ESMTP id ; Mon, 11 Nov 2002 04:25:28 -0500 Date: Mon, 11 Nov 2002 10:31:23 +0100 (MET) From: Geert Uytterhoeven To: Alan Cox , "David S. Miller" cc: Christoph Hellwig , Linus Torvalds , Linux Kernel Development Subject: Re: [PATCH] NCR53C9x ESP: C99 designated initializers In-Reply-To: <1036939080.1005.10.camel@irongate.swansea.linux.org.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1318 Lines: 43 On 10 Nov 2002, Alan Cox wrote: > 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 ? I don't know. I just ported the Sun/SPARC ESP SCSI driver changes in 2.5.45 to the NCR53C9x ESP SCSI drivers. If you're right, the same bug is present in esp.c. Dave? BTW, what about merging esp.c and NCR53C9x.c? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds - 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/