Re: [PATCH 1/1] fuse: add fuse_d_iput to postponed the iput

From: Miklos Szeredi
Date: Mon Jul 18 2022 - 09:57:36 EST


On Tue, 5 Jul 2022 at 10:53, Ed Tsai <ed.tsai@xxxxxxxxxxxx> wrote:
>
> When all the references of an inode are dropped, and write of its dirty
> pages is serving in Daemon, reclaim may deadlock on a regular allocation
> in Daemon.
>
> Add fuse_dentry_iput and some FI_* flags to postponed the iput for the
> inodes be using in fuse_write_inode.

I don't understand.

The inode must have a positive refcount during fuse_write_inode(), so
how would delaying an iput() change anything?

Thanks,
Miklos