linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] fuse: Introduce sysfs APIs to flush or resend pending requests
@ 2023-10-31 14:40 赵晨
  2023-10-31 14:40 ` [PATCH v[n] 1/2] fuse: Introduce sysfs API for flushing " 赵晨
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: 赵晨 @ 2023-10-31 14:40 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: miklos, 赵晨

After the fuse daemon crashes, the fuse mount point becomes inaccessible.
In some production environments, a watchdog daemon is used to preserve
the FUSE connection's file descriptor (fd). When the FUSE daemon crashes,
a new FUSE daemon is restarted and takes over the fd from the watchdog
daemon, allowing it to continue providing services.

However, if any inflight requests are lost during the crash, the user
process becomes stuck as it does not receive any replies.

To resolve this issue, this patchset introduces two sysfs APIs that enable
flushing or resending these pending requests for recovery. The flush
operation ends the pending request and returns an error to the
application, allowing the stuck user process to recover. While returning
an error may not be suitable for all scenarios, the resend API can be used
to resend the these pending requests. 

When using the resend API, FUSE daemon needs to ensure proper recording
and avoidance of processing duplicate non-idempotent requests to prevent
potential consistency issues.

Ma Jie Yue (1):
  fuse: Introduce sysfs API for flushing pending requests

Peng Tao (1):
  fuse: Introduce sysfs API for resend pending requests

 fs/fuse/control.c | 40 ++++++++++++++++++++
 fs/fuse/dev.c     | 94 +++++++++++++++++++++++++++++++++++++++++++++++
 fs/fuse/fuse_i.h  |  8 +++-
 3 files changed, 141 insertions(+), 1 deletion(-)

-- 
2.32.0.3.g01195cf9f


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-11-06 12:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-31 14:40 [PATCH v1 0/2] fuse: Introduce sysfs APIs to flush or resend pending requests 赵晨
2023-10-31 14:40 ` [PATCH v[n] 1/2] fuse: Introduce sysfs API for flushing " 赵晨
2023-10-31 14:40 ` [PATCH v[n] 2/2] fuse: Introduce sysfs API for resend " 赵晨
2023-11-01  0:52   ` Gao Xiang
2023-11-02 15:17 ` [PATCH v1 0/2] fuse: Introduce sysfs APIs to flush or " Miklos Szeredi
2023-11-06  9:57   ` 赵晨
2023-11-06 10:39     ` Miklos Szeredi
2023-11-06 12:03       ` 赵晨

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).