Messages in this thread | | | Date | Wed, 9 Oct 2002 13:39:01 +0200 | From | Ingo Oeser <> | Subject | Re: [ANNOUNCE] Linux Test Project October Release Available |
| |
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/
| |