HomeFreeBSD

fusefs: correctly set lock owner during FUSE_SETLK

Description

fusefs: correctly set lock owner during FUSE_SETLK

During FUSE_SETLK, the owner field should uniquely identify the calling
process. The fusefs module now sets it to the process's pid.
Previously, it expected the calling process to set it directly, which
was wrong.

libfuse also apparently expects the owner field to be set during
FUSE_GETLK, though I'm not sure why.

PR: 256005
Reported by: Agata <chogata@moosefs.pro>
Reviewed by: pfg
Differential Revision: https://reviews.freebsd.org/D30622

(cherry picked from commit 18b19f8c6e04935a63a951afe0e540674bc94455)

Details

Provenance
asomersAuthored on May 20 2021, 1:10 AM
Reviewer
pfg
Differential Revision
D30622: fusefs: correctly set lock owner during FUSE_SETLK
Parents
rG46138f337bd8: fusefs: ensure that FUSE ops' headers' unique values are actually unique
Branches
Unknown
Tags
Unknown