Re: [spi-devel-general] [patch 2.6.15-rc5-mm2] SPI, priority inversiontweak

From: Vitaly Wool
Date: Wed Dec 14 2005 - 01:42:26 EST


Okay, sorry, I've misundastood that.

Vitaly

David Brownell wrote:

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.








-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/