Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268312AbUJTPxP (ORCPT ); Wed, 20 Oct 2004 11:53:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268467AbUJTPrs (ORCPT ); Wed, 20 Oct 2004 11:47:48 -0400 Received: from phoenix.infradead.org ([81.187.226.98]:19721 "EHLO phoenix.infradead.org") by vger.kernel.org with ESMTP id S268458AbUJTPoe (ORCPT ); Wed, 20 Oct 2004 11:44:34 -0400 Date: Wed, 20 Oct 2004 16:44:32 +0100 From: Christoph Hellwig To: Mark Lord Cc: Christoph Hellwig , Jeff Garzik , Mark Lord , Linux Kernel , linux-scsi@vger.kernel.org Subject: Re: [PATCH] QStor SATA/RAID driver for 2.6.9-rc3 Message-ID: <20041020154432.GE21985@infradead.org> Mail-Followup-To: Christoph Hellwig , Mark Lord , Jeff Garzik , Mark Lord , Linux Kernel , linux-scsi@vger.kernel.org References: <20041007150709.B12688@infradead.org> <4165624C.5060405@rtr.ca> <416565DB.4050006@pobox.com> <4165A45D.2090200@rtr.ca> <4165A766.1040104@pobox.com> <4165A85D.7080704@rtr.ca> <4165AB1B.8000204@pobox.com> <4165ACF8.8060208@rtr.ca> <20041007221537.A17712@infradead.org> <4165BD38.4020403@rtr.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4165BD38.4020403@rtr.ca> User-Agent: Mutt/1.4.1i X-SRS-Rewrite: SMTP reverse-path rewritten from by phoenix.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1938 Lines: 52 On Thu, Oct 07, 2004 at 06:03:36PM -0400, Mark Lord wrote: > (Christoph Hellwig wrote: > > > > - the !dev case in qs_scsi_queuecomman can't happen > > Are you sure? > I have seen it occur immediately after hot-removal > of a drive. There have been other structural changes > since then, so perhaps it is no longer possible, > but I'd rather have the test there than have the > kernel ooops again. If you feel strongly about it, > then away it goes. Hmm. It's freed in ->slave_destroy and the scsi state model shouldn't allow new command submission long before. If you still see it happen please send a bugreport to linux-scsi. > > - never mess with eh_timeout from inside a driver > > Give us an interface for it, please. > In the meanwhile, gone! set scsi_device->timeout in ->slave_alloc to the value you want. > > - please don't implemente the HDIO_ ioctls, Jeff said this can > > be done via SG_IO > > SG_IO is incompatible with current user-mode toolsets. > Once that interface becomes more mature, and the distributions > gradually get updated with newer versions of the tools, > then the HDIO_ stuff can go (as per the comments in the source). > For now, it is essential for hdparm and smartmontools, among others. > > Alternatively, as Jeff has suggested, we may be able to implement > a generic HDIO_ mechanism in libata that re-issues the commands > through SG_IO (perhaps that is what you meant). Is that there now? So please fixup userspace. New hardware will require new system tools once in a while. > > - if ->info return a static string you can just store it into ->name > > So just nuke the _info() proc, and use .name = QS_DESC ? > Okay, done. Yes. - 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/