On Fri, Feb 19, 2021 at 8:05 AM Peng Tao <bergwolf@xxxxxxxxx> wrote: > > On Wed, Feb 17, 2021 at 9:41 PM Miklos Szeredi <miklos@xxxxxxxxxx> wrote: > > What I think would be useful is to have an explicit > > FUSE_DEV_IOC_PASSTHROUGH_CLOSE ioctl, that would need to be called > > once the fuse server no longer needs this ID. If this turns out to > > be a performance problem, we could still add the auto-close behavior > > with an explicit FOPEN_PASSTHROUGH_AUTOCLOSE flag later. > Hi Miklos, > > W/o auto closing, what happens if user space daemon forgets to call > FUSE_DEV_IOC_PASSTHROUGH_CLOSE? Do we keep the ID alive somewhere? Kernel would keep the ID open until explicit close or fuse connection is released. There should be some limit on the max open files referenced through ID's, though. E.g. inherit RLIMIT_NOFILE from mounting task. Thanks, Miklos