[Devel] [PATCH vz10 v3] fuse: reject FUSE_NOTIFY_INVAL_FILES for non-regular inodes

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Sep 29 15:26:48 MSK 2026


> FUSE_NOTIFY_INVAL_FILES invalidates the read/write io state of an inode,
> which only regular files have. The notification carries a bare nodeid,
> and the actual work is deferred to a workqueue:
> 
>   fuse_dev_do_write()
>    fuse_notify()
>     fuse_notify_inval_files()
>      fuse_invalidate_files()          inode = fuse_ilookup(fc, nodeid)
>       queue_delayed_work(fuse_inval_files_wq, &fc->inval_files_work)
>        ...
>        fuse_inval_files_work()        worker context
>         wake_up(&fi->page_waitq)      regular file state
> 
> What the bytes behind fi->page_waitq are depends on the inode type, see
> fuse_init_inode():
> [ ... ]
> https://virtuozzo.atlassian.net/browse/VSTOR-147641
> 
> Fixes: 19dd5fa442ea ("fuse: skip waiting for fuse writeback")
> Feature: vStorage
> Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260928-b4-prep-kh-vstor-147641-fuse_notify_inval_files-v3-1-43a1c1d0ebee@virtuozzo.com?part=1




More information about the Devel mailing list