Re: [PATCH v4 2/2] virtiofs: use GFP_NOFS when enqueuing request through kworker

2024-09-04 Thread Jingbo Xu
On 9/4/24 11:53 AM, Hou Tao wrote: > > > On 9/3/2024 5:34 PM, Jingbo Xu wrote: >> >> On 8/31/24 5:37 PM, Hou Tao wrote: >>> From: Hou Tao >>> >>> When invoking virtio_fs_enqueue_req() through kworker, both the >>> allocation o

Re: [PATCH v4 2/2] virtiofs: use GFP_NOFS when enqueuing request through kworker

2024-09-03 Thread Jingbo Xu
goto out; > @@ -1269,7 +1275,7 @@ static int virtio_fs_enqueue_req(struct virtio_fs_vq > *fsvq, > } > > /* Use a bounce buffer since stack args cannot be mapped */ > - ret = copy_args_to_argbuf(req); > + ret = copy_args_to_argbuf(req, gfp); &g

Re: [PATCH v4 1/2] virtiofs: use pages instead of pointer for kernel direct IO

2024-09-03 Thread Jingbo Xu
t; in fuse_get_user_pages() for write operations and the invalidation in > fuse_release_user_pages() for read operations. > > It may seem necessary to introduce another field in fuse_conn to > indicate that these KVEC_IO pages are used for DMA, However, considering > that virt

Re: [PATCH v3 0/2] virtiofs: fix the warning for kernel direct IO

2024-08-14 Thread Jingbo Xu
On 8/14/24 3:46 PM, Hou Tao wrote: > Hi, > > On 8/14/2024 2:34 PM, Jingbo Xu wrote: >> Hi, Tao, >> >> On 4/26/24 10:39 PM, Hou Tao wrote: >>> From: Hou Tao >>> >>> Hi, >>> >>> The patch set aims to fix the warning rela

Re: [PATCH v3 0/2] virtiofs: fix the warning for kernel direct IO

2024-08-13 Thread Jingbo Xu
Hi, Tao, On 4/26/24 10:39 PM, Hou Tao wrote: > From: Hou Tao > > Hi, > > The patch set aims to fix the warning related to an abnormal size > parameter of kmalloc() in virtiofs. Patch #1 fixes it by introducing > use_pages_for_kvec_io option in fuse_conn and enabling it in virtiofs. > Beside the