On Mon, May 22, 2023 at 6:20 PM Miklos Szeredi <miklos@xxxxxxxxxx> wrote: > > On Fri, 19 May 2023 at 14:57, Amir Goldstein <amir73il@xxxxxxxxx> wrote: > > > > Extend the passthrough feature by handling asynchronous IO both for read > > and write operations. > > > > When an AIO request is received, if the request targets a FUSE file with > > the passthrough functionality enabled, a new identical AIO request is > > created. The new request targets the backing file and gets assigned > > a special FUSE passthrough AIO completion callback. > > > > When the backing file AIO request is completed, the FUSE > > passthrough AIO completion callback is executed and propagates the > > completion signal to the FUSE AIO request by triggering its completion > > callback as well. > > Overlayfs added refcounting to the async req (commit 9a2544037600 > ("ovl: fix use after free in struct ovl_aio_req")). Is that not > needed for fuse as well? > > Would it make sense to try and merge the two implementations? > Makes sense - I will look into it. Thanks, Amir.