• Zhao Chen's avatar
    fuse: Introduce a new notification type for resend pending requests · 760eac73
    Zhao Chen authored
    When a FUSE daemon panics and failover, we aim to minimize the impact on
    applications by reusing the existing FUSE connection. During this process,
    another daemon is employed to preserve the FUSE connection's file
    descriptor. The new started FUSE Daemon will takeover the fd and continue
    to provide service.
    
    However, it is possible for some inflight requests to be lost and never
    returned. As a result, applications awaiting replies would become stuck
    forever. To address this, we can resend these pending requests to the
    new started FUSE daemon.
    
    This patch introduces a new notification type "FUSE_NOTIFY_RESEND", which
    can trigger resending of the pending requests, ensuring they are properly
    processed again.
    Signed-off-by: default avatarZhao Chen <winters.zc@antgroup.com>
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
    760eac73
dev.c 54.7 KB