Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 9 Oct 2002 12:44:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 9 Oct 2002 12:44:35 -0400 Received: from meg.hrz.tu-chemnitz.de ([134.109.132.57]:10395 "EHLO meg.hrz.tu-chemnitz.de") by vger.kernel.org with ESMTP id ; Wed, 9 Oct 2002 12:44:33 -0400 Date: Wed, 9 Oct 2002 13:39:01 +0200 From: Ingo Oeser To: linux-kernel@vger.kernel.org Cc: Robert Williamson , Paul Larson Subject: Re: [ANNOUNCE] Linux Test Project October Release Available Message-ID: <20021009133901.T642@nightmaster.csn.tu-chemnitz.de> References: <3DA33BF1.3F43E5C0@digeo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3DA33BF1.3F43E5C0@digeo.com>; from akpm@digeo.com on Tue, Oct 08, 2002 at 01:11:29PM -0700 X-Spam-Score: -21.4 (---------------------) X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *17zK2J-0002Fi-00*XlJ78vgiliI* Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1160 Lines: 35 On Tue, Oct 08, 2002 at 01:11:29PM -0700, Andrew Morton wrote: > Robert Williamson wrote: > > > > ... > > - Fix for "writev01" to check for EINVAL on ( Paul Larson ) > > 2.5.35 and above kernels > > > > whoa. I've been asleep. The 2.4 kernel _does_ return zero > if passed a zero segment count. > > So we need to fix 2.5 to do that as well. Sure, the spec > appears to allow either, but given that, we should preserve > the 2.4 behaviour. I agree. Passing zero counts means "no work to do" and passing that information is never a problem in any function. The same goes for a segment with zero len (which is a way to measure user space to kernel driver latency, if the driver implements writev and readv). It's only a "performance bug", if that is used in a real application, no wrong parameters. Regards Ingo Oeser -- Science is what we can tell a computer. Art is everything else. --- D.E.Knuth - 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/