[PATCH] fuse: avoid deadlock when write fuse inode

2021-02-01 Thread Huang Jianan
We found the following deadlock situations in low memory scenarios: Thread A Thread B - __writeback_single_inode - fuse_write_inode - fuse_simple_request - __fuse_request_send - request_wait_answer - fuse_dev_splice_read

Re: [PATCH] fuse: avoid deadlock when write fuse inode

2021-02-01 Thread Huang Jianan
Hi all, This patch works well in our product, but I am not sure this is the correct way to solve this problem. I think that the inode->i_count shouldn't be zero after iput is executed in dentry_unlink_inode, then the inode won't be writeback. But i haven't found where iget is missing. Thank

Re: [fuse-devel] [PATCH] fuse: avoid deadlock when write fuse inode

2021-03-24 Thread Miklos Szeredi
On Tue, Feb 2, 2021 at 5:41 AM Huang Jianan via fuse-devel wrote: > > We found the following deadlock situations in low memory scenarios: > Thread A Thread B > - __writeback_single_inode > - fuse_write_inode > - fuse_simple_request >- __fuse_request_send > - requ

Re: [fuse-devel] [PATCH] fuse: avoid deadlock when write fuse inode

2021-02-06 Thread Huang Jianan
friendly ping ... 😁 On 2021/2/2 12:11, Huang Jianan via fuse-devel wrote: Hi all, This patch works well in our product, but I am not sure this is the correct way to solve this problem. I think that the inode->i_count shouldn't be zero after iput is executed in dentry_unlink_inode, then the