>>>>> "Jens" == Jens Axboe <jens.axboe@oracle.com> writes: Jens> On Tue, Oct 23 2007, John Stoffel wrote:Jens> On Tue, Oct 23 2007, David Miller wrote: Jens> Great, thanks for testing that as well. Thinking a bit more Jens> about it, I think the forced clear should stay in Jens> blk_rq_map_sg() since we don't want to advertise it to Jens> drivers. So I'll just open-code it in there. Jens> We have to rely on the caller passing in an sgtable that is big enough Jens> to map the request, we have always made that assumption. Anything else Jens> would be a bug, of course. Now, catching that bug would indeed be nice. Jens> Any suggestions? Poor mans slab poisoning maybe? As Alan Cox was saying about keeping it simple with a NULL entry on the end of the SG list, having an easy way to not fall of the end seems key. But from reading and re-reading the thread and some of the code, it looks like this list is really allocated, then the driver can just re-use the list (or a subset) as much as it likes without clearing and then reallocating. So if you've got a chain of 127 items, does it make sense when you only use 16 of them to poison the next three or four in the chain to really make sure you don't fall off the end? Sorry I don't have a concrete example, my C-foo is quite weak and I haven't had the time to really dive into this code. So take my comments as just an interested but ignorant bystander butting in. :] John -
| Jens Axboe | Re: [BUG] New Kernel Bugs |
| Faik Uygur | Re: Linux 2.6.21-rc1 |
| Ingo Molnar | [patch 02/13] syslets: add syslet.h include file, user API/ABI definitions |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
git: | |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | Re: Data corruption issue with splice() on 2.6.27.10 |
| Steven Rostedt | Re: -rt scheduling: wakeup bug? |
