[PATCH RFC]: Bus_dma eats all available memory
Scott Long
scottl at samsco.org
Tue Jun 30 20:36:09 UTC 2009
Piotr Zięcik wrote:
> Friday 26 June 2009 16:01:17 Scott Long napisał(a):
>> Tags and maps should be allocated at driver initialization time, not
>> every time a request comes in. The problem here isn't the MAX() test,
>> it's that the MIN_ALLOC_COMP test is getting fooled because the tag
>> keeps on getting recycled. The correct fix is likely to move the flag
>> into the bounce zone object. But in general, you should not be
>> allocating and freeing tags and maps so often, they are meant to have a
>> long lifespan.
>>
>
> I have fixed my driver and updated patch for bus_dma. Could I ask you for
> review ? Patch was successfully tested on ARM.
>
This looks reasonable. I'll give it a closer review and commit it to
the FreeBSD repo. Thanks a lot for working on it.
Scott
More information about the freebsd-current
mailing list