2022-07-18 14:14:34

by Miklos Szeredi

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

On Tue, 5 Jul 2022 at 10:53, Ed Tsai <[email protected]> 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