linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
  • * Re: [fuse-devel] [PATCH] fuse: avoid deadlock when write fuse inode
           [not found] <20210202040830.26043-1-huangjianan@oppo.com>
           [not found] ` <ced84fb1-0dc1-a18f-0e61-556cd9e28003@oppo.com>
    @ 2021-03-24 15:28 ` Miklos Szeredi
      2022-03-10 11:10   ` Rokudo Yan
      1 sibling, 1 reply; 4+ messages in thread
    From: Miklos Szeredi @ 2021-03-24 15:28 UTC (permalink / raw)
      To: Huang Jianan
      Cc: linux-kernel, guoweichao, zhangshiming, linux-fsdevel, linux-mm,
    	Ed Tsai (蔡宗軒)
    
    On Tue, Feb 2, 2021 at 5:41 AM Huang Jianan via fuse-devel
    <fuse-devel@lists.sourceforge.net> 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
    >     - request_wait_answer
    >                                  - fuse_dev_splice_read
    >                                   - fuse_copy_fill
    >                                    - __alloc_pages_direct_reclaim
    >                                     - do_shrink_slab
    >                                      - super_cache_scan
    >                                       - shrink_dentry_list
    >                                        - dentry_unlink_inode
    >                                         - iput_final
    >                                          - inode_wait_for_writeback
    
    On what kernel are you seeing this?
    
    I don't see how it can happen on upstream kernels, since there's a
    "write_inode_now(inode, 1)" call in fuse_release() and nothing can
    dirty the inode after the file has been released.
    
    Thanks,
    Miklos
    
    ^ permalink raw reply	[flat|nested] 4+ messages in thread

  • end of thread, other threads:[~2022-04-25 13:16 UTC | newest]
    
    Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20210202040830.26043-1-huangjianan@oppo.com>
         [not found] ` <ced84fb1-0dc1-a18f-0e61-556cd9e28003@oppo.com>
    2021-02-07  1:47   ` [fuse-devel] [PATCH] fuse: avoid deadlock when write fuse inode Huang Jianan
    2021-03-24 15:28 ` Miklos Szeredi
    2022-03-10 11:10   ` Rokudo Yan
    2022-04-25 13:15     ` Miklos Szeredi
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).