Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261375AbUC3VsN (ORCPT ); Tue, 30 Mar 2004 16:48:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261361AbUC3VsN (ORCPT ); Tue, 30 Mar 2004 16:48:13 -0500 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:50818 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S261375AbUC3VsC (ORCPT ); Tue, 30 Mar 2004 16:48:02 -0500 Message-ID: <4069EB03.9000202@pobox.com> Date: Tue, 30 Mar 2004 16:47:47 -0500 From: Jeff Garzik User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030703 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Justin T. Gibbs" CC: Kevin Corry , linux-kernel@vger.kernel.org, Neil Brown , linux-raid@vger.kernel.org, dm-devel@redhat.com Subject: Re: "Enhanced" MD code avaible for review References: <760890000.1079727553@aslan.btc.adaptec.com> <200403261315.20213.kevcorry@us.ibm.com> <1644340000.1080333901@aslan.btc.adaptec.com> <200403270939.29164.kevcorry@us.ibm.com> <842610000.1080666235@aslan.btc.adaptec.com> <4069AB1B.90108@pobox.com> <854630000.1080668158@aslan.btc.adaptec.com> <4069B289.9030807@pobox.com> <866290000.1080669880@aslan.btc.adaptec.com> In-Reply-To: <866290000.1080669880@aslan.btc.adaptec.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1787 Lines: 46 Justin T. Gibbs wrote: >>>That's unfortunate for those using ATA. A command submitted from userland >> >>Required, since one cannot know the data phase of vendor-specific commands. > > > So you are saying that this presents an unrecoverable situation? No, I'm saying that the data phase need not have a bunch of in-kernel checks, it should be generated correctly from the source. >>Particularly, checking whether the kernel is doing something wrong, or wrong, >>just wastes cycles. That's not a scalable way to code... if every driver >>and Linux subsystem did that, things would be unbearable slow. > > > Hmm. I've never had someone tell me that my SCSI drivers are slow. This would be noticed in the CPU utilization area. Your drivers are probably a long way from being CPU-bound. > I don't think that your statement is true in the general case. My > belief is that validation should occur where it is cheap and efficient > to do so. More expensive checks should be pushed into diagnostic code > that is disabled by default, but the code *should be there*. In any event, > for RAID meta-data, we're talking about code that is *not* in the common > or time critical path of the kernel. A few dozen lines of validation code > there has almost no impact on the size of the kernel and yields huge > benefits for debugging and maintaining the code. This is even more > the case in Linux the end user is often your test lab. It doesn't scale terribly well, because the checks themselves become a source of bugs. Jeff - 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/