+8
−0
+1
−0
+29
−0
+2
−0
Loading
mainline inclusion from mainline-v6.0-rc1 commit 0ef69e78 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I77IM8 CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/net/smc?id=0ef69e788411cba2af017db731a9fc62d255e9ac -------------------------------- Some CPU, such as Xeon, can guarantee DMA cache coherency. So it is no need to use dma sync APIs to flush cache on such CPUs. In order to avoid calling dma sync APIs on the IO path, use the dma_need_sync to check whether smc_buf_desc needs dma sync when creating smc_buf_desc. Signed-off-by:Guangguan Wang <guangguan.wang@linux.alibaba.com> Signed-off-by:
David S. Miller <davem@davemloft.net> Signed-off-by:
Litao Jiao <jiaolitao@sangfor.com.cn>