Re: cdrom: use kmalloced buffers instead of buffers on stack

From: David Miller
Date: Mon Apr 21 2008 - 22:03:38 EST


From: Jeff Garzik <jeff@xxxxxxxxxx>
Date: Mon, 21 Apr 2008 22:01:26 -0400

> Eh... AFAICS this is only really useful in two of the cases converted.
>
> For all the other cases (<= 32 bytes), it is _far_ less complex, far
> less code to simply communicate the additional alignment requirements to
> the compiler.
>
> What about __attribute__ __aligned__? Was that tried?

On some platforms the stack is virtually mapped instead of
from kmalloc or get_free_pages memory.

DMA on stack buffers is really not feasible.
--
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/