Re: [RFC 5/5] virtiofs: perform DMA operations out of the spinlock

2025-01-22 Thread Jason Wang
On Thu, Jan 23, 2025 at 9:56 AM Jason Wang wrote: > > On Thu, Jan 23, 2025 at 12:32 AM Eugenio Pérez wrote: > > > > This is useful for some setups like swiotlb or VDUSE where the DMA > > operations are expensive and/or need to be performed with a write lock. > > > > After applying this patch, fio

Re: [RFC 5/5] virtiofs: perform DMA operations out of the spinlock

2025-01-22 Thread Jason Wang
On Thu, Jan 23, 2025 at 12:32 AM Eugenio Pérez wrote: > > This is useful for some setups like swiotlb or VDUSE where the DMA > operations are expensive and/or need to be performed with a write lock. > > After applying this patch, fio read test goes from 1201MiB/s to 1211MiB/s. The difference is t

[RFC 5/5] virtiofs: perform DMA operations out of the spinlock

2025-01-22 Thread Eugenio Pérez
This is useful for some setups like swiotlb or VDUSE where the DMA operations are expensive and/or need to be performed with a write lock. After applying this patch, fio read test goes from 1201MiB/s to 1211MiB/s. Signed-off-by: Eugenio Pérez --- drivers/virtio/virtio_ring.c | 2 ++ fs/fuse/vi