Re: [PATCH 2/5] block: move .dma_alignment into q->limits

2018-10-18 Thread Bart Van Assche
On Thu, 2018-10-18 at 21:18 +0800, Ming Lei wrote: > Turns out q->dma_alignement should be stack limit because now bvec table ^^ dma_alignment? > is immutalbe, the underlying queue's dma alignment has to be perceptible ^

Re: [PATCH 2/5] block: move .dma_alignment into q->limits

2018-10-18 Thread Christoph Hellwig
On Thu, Oct 18, 2018 at 09:18:14PM +0800, Ming Lei wrote: > Turns out q->dma_alignement should be stack limit because now bvec table > is immutalbe, the underlying queue's dma alignment has to be perceptible > by stack driver, so IO buffer can be allocated as dma aligned before > adding to bio. >

[PATCH 2/5] block: move .dma_alignment into q->limits

2018-10-18 Thread Ming Lei
Turns out q->dma_alignement should be stack limit because now bvec table is immutalbe, the underlying queue's dma alignment has to be perceptible by stack driver, so IO buffer can be allocated as dma aligned before adding to bio. So this patch moves .dma_alignment into q->limits and prepares for