On Wed, 08 Aug 2007 14:22:20 +0100 David Vrabel <david.vrabel@csr.com> wrote:3 and 4 are subjective, and for 2, the performance penalty has to come some place. The upside, as explained, is that drivers aren't penalized for setting the block size and then failing to use it. Something that gives us the flexibility to write cleaner code. As for benefits, there are other issues. We might want to deal with things like alignment problems in the future. Agreed, we're doing a bit more guessing than one would like. But I don't agree in keeping the core simple and flexible. Rather the opposite. Any guarantee that we give drivers now and need to remove in the future needs to be tested with all drivers that rely on it (a difficult task as it often takes some effort to find people with hardware and the ability to test patches). As such, the guarantees should be kept at a minimum. Code is easily changed, API is not. IMO, the best way to achieve this is with an API that describes _what_ the drivers want to do, not _how_. Hence my insistence on allowing drivers to specify the difference between "I want this data transferred" and "I want this data transferred with an exact block size of 32 bytes". These looks good. The only part I'm really attached to is the blksz == 0 case, which you have. Rgds -- -- Pierre Ossman Linux kernel, MMC maintainer http://www.kernel.org PulseAudio, core developer http://pulseaudio.org rdesktop, core developer http://www.rdesktop.org -
| Mariusz Kozlowski | [PATCH 01] kmalloc + memset conversion co kzalloc |
| Rafael J. Wysocki | [Bug #10629] 2.6.26-rc1-$sha1: RIP __d_lookup+0x8c/0x160 |
| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
| Jeff Garzik | Re: [RFC] Heads up on sys_fallocate() |
git: | |
| Linus Torvalds | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
