HomeFreeBSD

fusefs: ensure that FUSE ops' headers' unique values are actually unique

Description

fusefs: ensure that FUSE ops' headers' unique values are actually unique

Every FUSE operation has a unique value in its header. As the name
implies, these values are supposed to be unique among all outstanding
operations. And since FUSE_INTERRUPT is asynchronous and racy, it is
desirable that the unique values be unique among all operations that are
"close in time".

Ensure that they are actually unique by incrementing them whenever we
reuse a fuse_dispatcher object, for example during fsync, write, and
listextattr.

PR: 244686
Reviewed by: pfg
Differential Revision: https://reviews.freebsd.org/D30810

(cherry picked from commit 5403f2c163f7e3d1adb9431d216f88d57cf9d74b)

Details

Provenance
asomersAuthored on Jun 18 2021, 12:04 AM
Reviewer
pfg
Differential Revision
D30810: fusefs: ensure that FUSE ops' headers' unique values are actually unique
Parents
rG43f57e98d032: fusefs: delete some dead code
Branches
Unknown
Tags
Unknown