On Tuesday 13 December 2005 1:49 pm, Vitaly Wool wrote:
So you're turning this to be unsafe if the buffer is in use, right? Funny...
I have no idea what you mean by that comment. The parameters to that
function have always been documented as "will copy", and the two branches
(busy/not) differ only in _which_ buffer they use from the heap (the
fast pre-allocated one, or a freshly allocated scratch buffer). Heap
buffers are by definition DMA-safe.
- Dave
David Brownell wrote:
This is an updated version of the patch from Mark Underwood, handling
the no-memory case better and using SLAB_KERNEL not SLAB_ATOMIC.