{
  "slug": "fuse-interrupt",
  "term": "FUSE INTERRUPT",
  "aliases": [
    "FUSE request interruption"
  ],
  "definition": "FUSE INTERRUPT notifies a userspace filesystem that an earlier request was interrupted, without itself completing or rolling back that request.",
  "note": "Notification: After dispatch, the daemon may ignore the interrupt or answer the original request with EINTR. A fatal signal before dispatch can instead remove the original request. These are different stages, not a universal cancellation guarantee. [linux-interrupt]\n\nControl reply: An EAGAIN reply to the interrupt can requeue that notification when the original request is still outstanding; it does not resubmit the filesystem mutation. In Linux v6.12, ENOSYS on this control reply sets the connection's no_interrupt flag. Neither reply is the original operation's result. [linux-interrupt-reply]\n\nRegistration: libfuse 3.16.2 can invoke the callback inside fuse_req_interrupt_func if interruption has already arrived. Initialize callback state before registering. The implementation holds the request mutex during that call; recursively registering or unregistering on the same request would try to acquire that mutex again. [libfuse-interrupt-api] [libfuse-interrupt-lock]\n\nInterpretation: An interruption flag is not evidence that a backend write never occurred. Reconcile the operation's result and backend state before retrying a non-idempotent change. This is a source-derived engineering precaution, not a measured failure rate.\n\nIn 12 native schedules, libfuse 3.16.2/3.17.4 delivered two callbacks for two interrupts or two registrations after one interrupt: 144 case executions, not 144 independent samples; no filesystem was mounted. Unregistration retained the interrupted flag. [hesela-native-interrupt]\n\nThe cancellation policy was chosen by the harness. EINTR before/after its write left SEED/DONE. This is not a libfuse rollback defect or durability test. [hesela-native-interrupt]",
  "related": [
    "fuse"
  ],
  "citations": [
    {
      "id": "linux-interrupt",
      "title": "Linux v6.12: interruption races and connection abort",
      "url": "https://www.kernel.org/doc/html/v6.12/filesystems/fuse.html#interrupting-filesystem-operations",
      "accessed": "2026-11-29"
    },
    {
      "id": "linux-interrupt-reply",
      "title": "Linux v6.12: fuse_dev_do_write interrupt-reply handling",
      "url": "https://github.com/torvalds/linux/blob/v6.12/fs/fuse/dev.c#L2011-L2024",
      "accessed": "2026-11-29"
    },
    {
      "id": "libfuse-interrupt-api",
      "title": "libfuse 3.16.2: fuse_req_interrupt_func callback contract",
      "url": "https://github.com/libfuse/libfuse/blob/fuse-3.16.2/include/fuse_lowlevel.h#L1888-L1900",
      "accessed": "2026-11-29"
    },
    {
      "id": "libfuse-interrupt-lock",
      "title": "libfuse 3.16.2: callback registration and request locking",
      "url": "https://github.com/libfuse/libfuse/blob/fuse-3.16.2/lib/fuse_lowlevel.c#L2539-L2551",
      "accessed": "2026-11-29"
    },
    {
      "id": "hesela-fuse-interrupt",
      "title": "Hesela: interruption is not rollback",
      "url": "https://hesela.com/analyses/fuse-writeback-cache-fsync/#interrupt",
      "accessed": "2026-11-29"
    },
    {
      "id": "hesela-native-interrupt",
      "title": "Hesela native FUSE interruption: reproducible code, typed claims and observations",
      "url": "https://hesela.dev/research/fuse-interrupt-native/README.md",
      "accessed": "2026-11-30"
    }
  ],
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-30",
  "provenance": [
    "Reviewed Linux v6.12 protocol and implementation, the FAST 2017 study, and pinned libfuse 3.16.2/3.17.4 source.",
    "Native synthetic-protocol evidence generated 2026-11-29 and replayed 2026-11-30 with identical normalized traces: 12 schedules, two versions, two compiler modes and three repetitions.",
    "No mounted kernel/daemon workload, concurrency, deadlock, fsync or crash-durability test was run. Public harness, runner, verifier, observations and source archive pins are linked from the evidence guide."
  ]
}
