linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 RESEND 0/2] fuse: Add support for resend pending requests
@ 2023-12-20  8:49 Zhao Chen
  2023-12-20  8:49 ` [PATCH v3 RESEND 1/2] fuse: Introduce a new notification type " Zhao Chen
  2023-12-20  8:49 ` [PATCH v3 RESEND 2/2] fuse: Use the high bit of request ID for indicating resend requests Zhao Chen
  0 siblings, 2 replies; 6+ messages in thread
From: Zhao Chen @ 2023-12-20  8:49 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 started 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 a new notification type
that enable resending these pending requests to the FUSE daemon again,
allowing the stuck user process to recover.

When using the resend API, FUSE daemon needs to ensure avoidance of
processing duplicate non-idempotent requests to prevent potential
consistency issues. The high bit of the fuse request id is utilized for
indicating the resend request.

---
v2->v3:
 - use notification instead of sysfs API to trigger resend
 - simplify FUSE_REQ_ID_MASK related code
 - rename some related macro names

v1->v2:
 - remove flush sysfs API in the original mail
 - add using high bit of request ID for indicating resend requests
 - add wakeup in fuse_resend_pqueue()

Zhao Chen (2):
  fuse: Introduce a new notification type for resend pending requests
  fuse: Use the high bit of request ID for indicating resend requests

 fs/fuse/dev.c             | 69 ++++++++++++++++++++++++++++++++++++++-
 fs/fuse/inode.c           |  3 +-
 include/uapi/linux/fuse.h | 12 +++++++
 3 files changed, 82 insertions(+), 2 deletions(-)

-- 
2.32.0.3.g01195cf9f


^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH v3 RESEND 0/2] fuse: Add support for resend pending requests
@ 2023-12-11 12:06 Zhao Chen
  2023-12-11 12:06 ` [PATCH v3 RESEND 1/2] fuse: Introduce a new notification type " Zhao Chen
  0 siblings, 1 reply; 6+ messages in thread
From: Zhao Chen @ 2023-12-11 12:06 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 started 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 a new notification type
that enable resending these pending requests to the FUSE daemon again,
allowing the stuck user process to recover.

When using the resend API, FUSE daemon needs to ensure avoidance of
processing duplicate non-idempotent requests to prevent potential
consistency issues. The high bit of the fuse request id is utilized for
indicating the resend request.

---
v2->v3:
 - use notification instead of sysfs API to trigger resend
 - simplify FUSE_REQ_ID_MASK related code
 - rename some related macro names

v1->v2:
 - remove flush sysfs API in the original mail
 - add using high bit of request ID for indicating resend requests
 - add wakeup in fuse_resend_pqueue()

Zhao Chen (2):
  fuse: Introduce a new notification type for resend pending requests
  fuse: Use the high bit of request ID for indicating resend requests

 fs/fuse/dev.c             | 69 ++++++++++++++++++++++++++++++++++++++-
 fs/fuse/inode.c           |  3 +-
 include/uapi/linux/fuse.h | 12 +++++++
 3 files changed, 82 insertions(+), 2 deletions(-)

-- 
2.32.0.3.g01195cf9f


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

end of thread, other threads:[~2024-01-09  9:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-20  8:49 [PATCH v3 RESEND 0/2] fuse: Add support for resend pending requests Zhao Chen
2023-12-20  8:49 ` [PATCH v3 RESEND 1/2] fuse: Introduce a new notification type " Zhao Chen
2024-01-04 12:03   ` Miklos Szeredi
2024-01-09  9:16     ` Zhao Chen
2023-12-20  8:49 ` [PATCH v3 RESEND 2/2] fuse: Use the high bit of request ID for indicating resend requests Zhao Chen
  -- strict thread matches above, loose matches on Subject: below --
2023-12-11 12:06 [PATCH v3 RESEND 0/2] fuse: Add support for resend pending requests Zhao Chen
2023-12-11 12:06 ` [PATCH v3 RESEND 1/2] fuse: Introduce a new notification type " Zhao Chen

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