The patch titled asm-generic: remove calling flush_write_buffers() in dma_sync_*_for_cpu has been added to the -mm tree. Its filename is asm-generic-remove-calling-flush_write_buffers-in-dma_sync__for_cpu.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: asm-generic: remove calling flush_write_buffers() in dma_sync_*_for_cpu From: Ming Lei <tom.leiming@xxxxxxxxx> dma_sync_*_for_cpu() is introduced to make cpu access dma buffers safely when dma transfer is over, it seems there is nothing to do with cpu write buffer, so remove it. Signed-off-by: Ming Lei <tom.leiming@xxxxxxxxx> Cc: Arnd Bergmann <arnd@xxxxxxxx> Cc: FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx> Cc: Joerg Roedel <joerg.roedel@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/asm-generic/dma-mapping-common.h | 3 --- 1 file changed, 3 deletions(-) diff -puN include/asm-generic/dma-mapping-common.h~asm-generic-remove-calling-flush_write_buffers-in-dma_sync__for_cpu include/asm-generic/dma-mapping-common.h --- a/include/asm-generic/dma-mapping-common.h~asm-generic-remove-calling-flush_write_buffers-in-dma_sync__for_cpu +++ a/include/asm-generic/dma-mapping-common.h @@ -103,7 +103,6 @@ static inline void dma_sync_single_for_c if (ops->sync_single_for_cpu) ops->sync_single_for_cpu(dev, addr, size, dir); debug_dma_sync_single_for_cpu(dev, addr, size, dir); - flush_write_buffers(); } static inline void dma_sync_single_for_device(struct device *dev, @@ -132,7 +131,6 @@ static inline void dma_sync_single_range ops->sync_single_range_for_cpu(dev, addr, offset, size, dir); debug_dma_sync_single_range_for_cpu(dev, addr, offset, size, dir); - flush_write_buffers(); } else dma_sync_single_for_cpu(dev, addr, size, dir); } @@ -165,7 +163,6 @@ dma_sync_sg_for_cpu(struct device *dev, if (ops->sync_sg_for_cpu) ops->sync_sg_for_cpu(dev, sg, nelems, dir); debug_dma_sync_sg_for_cpu(dev, sg, nelems, dir); - flush_write_buffers(); } static inline void _ Patches currently in -mm which might be from tom.leiming@xxxxxxxxx are linux-next.patch asm-generic-remove-calling-flush_write_buffers-in-dma_sync__for_cpu.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html