Re: [PATCH 03/13] scsi: unify allocation of scsi command and sense buffer

From: Roland Dreier
Date: Mon May 25 2009 - 21:45:41 EST


> Ideally there should be a MACRO that is defined to WORD_SIZE on cache-coherent
> ARCHs and to SMP_CACHE_BYTES on none-cache-coherent systems and use that size
> at the __align() attribute. (So only stupid ARCHES get hurt)

this seems to come up repeatedly -- I had a proposal a _long_ time ago
that never quite got merged, cf http://lwn.net/Articles/2265/ and
http://lwn.net/Articles/2269/ -- from 2002 (!?). The idea is to go a
step further and create a __dma_buffer annotation for structure members.

Maybe I should resurrect that work one more time?

- R.
--
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/