Xuan Zhuo 5720c43d52 virtio_net: fix the missing of the dma cpu sync
Commit 295525e29a5b ("virtio_net: merge dma operations when filling
mergeable buffers") unmaps the buffer with DMA_ATTR_SKIP_CPU_SYNC when
the dma->ref is zero. We do that with DMA_ATTR_SKIP_CPU_SYNC, because we
do not want to do the sync for the entire page_frag. But that misses the
sync for the current area.

This patch does cpu sync regardless of whether the ref is zero or not.

Fixes: 295525e29a5b ("virtio_net: merge dma operations when filling mergeable buffers")
Reported-by: Michael Roth <michael.roth@amd.com>
Closes: http://lore.kernel.org/all/20230926130451.axgodaa6tvwqs3ut@amd.com
Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2023-10-15 11:49:57 -07:00
..
2023-08-22 15:50:57 +02:00
2023-08-30 13:34:34 -07:00
2023-10-03 11:57:37 -07:00
2023-10-06 15:43:19 -07:00
Hi,
2023-09-13 11:44:20 -07:00
2023-08-31 12:43:10 -07:00
2023-08-24 16:20:30 -07:00
2023-10-13 08:52:57 -07:00
2023-08-30 19:23:00 -07:00
2023-09-30 18:41:37 -07:00
2023-10-13 13:20:24 +10:00
2023-09-04 11:26:29 -07:00
2023-08-28 16:35:01 -07:00
2023-10-13 23:19:16 -07:00
2023-08-31 12:43:10 -07:00
2023-10-05 11:03:20 -07:00
2023-09-01 09:38:00 -07:00
2023-08-30 18:32:24 -07:00
2023-09-14 16:20:31 -06:00
2023-08-18 10:55:49 +05:30
2023-10-06 09:11:13 -07:00
2023-10-13 09:17:48 -07:00
2023-09-07 18:05:58 -07:00
2023-09-04 15:12:26 -07:00
2023-09-04 15:08:52 -07:00
2023-09-07 16:07:35 -07:00
2023-10-12 11:52:23 -07:00
2023-10-12 11:52:23 -07:00
2023-09-04 10:43:44 -07:00
2023-09-21 10:33:49 +02:00
2023-08-24 16:20:18 -07:00
2023-09-06 09:19:12 -07:00
2023-08-21 13:27:44 +02:00