Re: Question about sg_count_fuse_req() in linux/fs/fuse/virtio_fs.c

2021-03-18 Thread Connor Kuehl
On 3/18/21 8:56 AM, Vivek Goyal wrote: I think all the in args are being mapped into a single scatter gather element and that's why it does not matter whether in_numargs is 3, 2 or 1. They will be mapped in a single element. sg_init_fuse_args() { len = fuse_len_args(numargs - argpages,

Re: Question about sg_count_fuse_req() in linux/fs/fuse/virtio_fs.c

2021-03-18 Thread Vivek Goyal
On Wed, Mar 17, 2021 at 01:12:01PM -0500, Connor Kuehl wrote: > Hi, > > I've been familiarizing myself with the virtiofs guest kernel module and I'm > trying to better understand how virtiofs maps a FUSE request into > scattergather lists. > > sg_count_fuse_req() starts knowing that there will

Question about sg_count_fuse_req() in linux/fs/fuse/virtio_fs.c

2021-03-17 Thread Connor Kuehl
Hi, I've been familiarizing myself with the virtiofs guest kernel module and I'm trying to better understand how virtiofs maps a FUSE request into scattergather lists. sg_count_fuse_req() starts knowing that there will be at least one in header, as shown here (which makes sense):